Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Side by Side Diff: chrome/browser/ui/webui/chromeos/mobile_setup_dialog.cc

Issue 10703061: chrome/browser/ui: Put browser_dialogs.h into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h" 5 #include "chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/chromeos/mobile/mobile_activator.h" 10 #include "chrome/browser/chromeos/mobile/mobile_activator.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 MobileSetupDialogDelegate::MobileSetupDialogDelegate() : dialog_window_(NULL) { 87 MobileSetupDialogDelegate::MobileSetupDialogDelegate() : dialog_window_(NULL) {
88 } 88 }
89 89
90 MobileSetupDialogDelegate::~MobileSetupDialogDelegate() { 90 MobileSetupDialogDelegate::~MobileSetupDialogDelegate() {
91 MobileActivator::GetInstance()->RemoveObserver(this); 91 MobileActivator::GetInstance()->RemoveObserver(this);
92 } 92 }
93 93
94 void MobileSetupDialogDelegate::ShowDialog(const std::string& service_path) { 94 void MobileSetupDialogDelegate::ShowDialog(const std::string& service_path) {
95 service_path_ = service_path; 95 service_path_ = service_path;
96 dialog_window_ = browser::ShowWebDialog( 96 dialog_window_ = chrome::ShowWebDialog(
97 NULL, 97 NULL,
98 ProfileManager::GetDefaultProfileOrOffTheRecord(), 98 ProfileManager::GetDefaultProfileOrOffTheRecord(),
99 this); 99 this);
100 } 100 }
101 101
102 ui::ModalType MobileSetupDialogDelegate::GetDialogModalType() const { 102 ui::ModalType MobileSetupDialogDelegate::GetDialogModalType() const {
103 return ui::MODAL_TYPE_SYSTEM; 103 return ui::MODAL_TYPE_SYSTEM;
104 } 104 }
105 105
106 string16 MobileSetupDialogDelegate::GetDialogTitle() const { 106 string16 MobileSetupDialogDelegate::GetDialogTitle() const {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 bool MobileSetupDialogDelegate::HandleContextMenu( 156 bool MobileSetupDialogDelegate::HandleContextMenu(
157 const content::ContextMenuParams& params) { 157 const content::ContextMenuParams& params) {
158 return true; 158 return true;
159 } 159 }
160 160
161 void MobileSetupDialogDelegate::OnActivationStateChanged( 161 void MobileSetupDialogDelegate::OnActivationStateChanged(
162 CellularNetwork* network, 162 CellularNetwork* network,
163 MobileActivator::PlanActivationState state, 163 MobileActivator::PlanActivationState state,
164 const std::string& error_description) { 164 const std::string& error_description) {
165 } 165 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/web_dialog_view.cc ('k') | chrome/browser/ui/webui/set_as_default_browser_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698