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

Side by Side Diff: chrome/browser/remoting/remoting_setup_flow.cc

Issue 4110010: Cloud Print Dialog work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Direct paths for prefs. Created 10 years, 1 month 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/remoting/remoting_setup_flow.h ('k') | chrome/browser/sync/sync_setup_flow.h » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/remoting/remoting_setup_flow.h" 5 #include "chrome/browser/remoting/remoting_setup_flow.h"
6 6
7 #include "app/gfx/font_util.h" 7 #include "app/gfx/font_util.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/singleton.h" 9 #include "base/singleton.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 166
167 std::wstring RemotingSetupFlow::GetDialogTitle() const { 167 std::wstring RemotingSetupFlow::GetDialogTitle() const {
168 return l10n_util::GetString(IDS_REMOTING_SETUP_DIALOG_TITLE); 168 return l10n_util::GetString(IDS_REMOTING_SETUP_DIALOG_TITLE);
169 } 169 }
170 170
171 bool RemotingSetupFlow::IsDialogModal() const { 171 bool RemotingSetupFlow::IsDialogModal() const {
172 return true; 172 return true;
173 } 173 }
174 174
175 bool RemotingSetupFlow::ShouldShowDialogTitle() const {
176 return true;
177 }
178
175 /////////////////////////////////////////////////////////////////////////////// 179 ///////////////////////////////////////////////////////////////////////////////
176 // GaiaAuthConsumer implementation. 180 // GaiaAuthConsumer implementation.
177 void RemotingSetupFlow::OnClientLoginFailure( 181 void RemotingSetupFlow::OnClientLoginFailure(
178 const GoogleServiceAuthError& error) { 182 const GoogleServiceAuthError& error) {
179 ShowGaiaFailed(error); 183 ShowGaiaFailed(error);
180 authenticator_.reset(); 184 authenticator_.reset();
181 } 185 }
182 186
183 void RemotingSetupFlow::OnClientLoginSuccess( 187 void RemotingSetupFlow::OnClientLoginSuccess(
184 const GaiaAuthConsumer::ClientLoginResult& credentials) { 188 const GaiaAuthConsumer::ClientLoginResult& credentials) {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 } 308 }
305 309
306 void RemotingSetupFlow::ExecuteJavascriptInIFrame( 310 void RemotingSetupFlow::ExecuteJavascriptInIFrame(
307 const std::wstring& iframe_xpath, 311 const std::wstring& iframe_xpath,
308 const std::wstring& js) { 312 const std::wstring& js) {
309 if (dom_ui_) { 313 if (dom_ui_) {
310 RenderViewHost* rvh = dom_ui_->tab_contents()->render_view_host(); 314 RenderViewHost* rvh = dom_ui_->tab_contents()->render_view_host();
311 rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js); 315 rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js);
312 } 316 }
313 } 317 }
OLDNEW
« no previous file with comments | « chrome/browser/remoting/remoting_setup_flow.h ('k') | chrome/browser/sync/sync_setup_flow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698