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

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

Issue 10689095: browser: Put simple_message_box.h and chrome_web_contents_view_delegate.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
« no previous file with comments | « chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 dialog_window_ = NULL; 136 dialog_window_ = NULL;
137 } 137 }
138 138
139 void MobileSetupDialogDelegate::OnCloseContents(WebContents* source, 139 void MobileSetupDialogDelegate::OnCloseContents(WebContents* source,
140 bool* out_close_dialog) { 140 bool* out_close_dialog) {
141 if (!dialog_window_ || !MobileActivator::GetInstance()->RunningActivation()) { 141 if (!dialog_window_ || !MobileActivator::GetInstance()->RunningActivation()) {
142 *out_close_dialog = true; 142 *out_close_dialog = true;
143 return; 143 return;
144 } 144 }
145 145
146 *out_close_dialog = browser::ShowMessageBox(dialog_window_, 146 *out_close_dialog = chrome::ShowMessageBox(dialog_window_,
147 l10n_util::GetStringUTF16(IDS_MOBILE_SETUP_TITLE), 147 l10n_util::GetStringUTF16(IDS_MOBILE_SETUP_TITLE),
148 l10n_util::GetStringUTF16(IDS_MOBILE_CANCEL_ACTIVATION), 148 l10n_util::GetStringUTF16(IDS_MOBILE_CANCEL_ACTIVATION),
149 browser::MESSAGE_BOX_TYPE_QUESTION); 149 chrome::MESSAGE_BOX_TYPE_QUESTION);
150 } 150 }
151 151
152 bool MobileSetupDialogDelegate::ShouldShowDialogTitle() const { 152 bool MobileSetupDialogDelegate::ShouldShowDialogTitle() const {
153 return true; 153 return true;
154 } 154 }
155 155
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/tab_contents/chrome_web_contents_view_delegate_views.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698