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

Side by Side Diff: chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc

Issue 9382037: Move ContextMenuParams struct from webkit/glue to content/public/common. The reasons are: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 10 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/printing/cloud_print/cloud_print_setup_flow.h" 5 #include "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 ui::ModalType CloudPrintSetupFlow::GetDialogModalType() const { 193 ui::ModalType CloudPrintSetupFlow::GetDialogModalType() const {
194 // We are always modeless. 194 // We are always modeless.
195 return ui::MODAL_TYPE_NONE; 195 return ui::MODAL_TYPE_NONE;
196 } 196 }
197 197
198 bool CloudPrintSetupFlow::ShouldShowDialogTitle() const { 198 bool CloudPrintSetupFlow::ShouldShowDialogTitle() const {
199 return true; 199 return true;
200 } 200 }
201 201
202 bool CloudPrintSetupFlow::HandleContextMenu( 202 bool CloudPrintSetupFlow::HandleContextMenu(
203 const ContextMenuParams& params) { 203 const content::ContextMenuParams& params) {
204 return true; 204 return true;
205 } 205 }
206 206
207 /////////////////////////////////////////////////////////////////////////////// 207 ///////////////////////////////////////////////////////////////////////////////
208 // GaiaAuthConsumer implementation. 208 // GaiaAuthConsumer implementation.
209 void CloudPrintSetupFlow::OnClientLoginSuccess( 209 void CloudPrintSetupFlow::OnClientLoginSuccess(
210 const GaiaAuthConsumer::ClientLoginResult& credentials) { 210 const GaiaAuthConsumer::ClientLoginResult& credentials) {
211 // Save the token for the cloud print proxy. 211 // Save the token for the cloud print proxy.
212 lsid_ = credentials.lsid; 212 lsid_ = credentials.lsid;
213 213
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 } 333 }
334 334
335 void CloudPrintSetupFlow::ExecuteJavascriptInIFrame( 335 void CloudPrintSetupFlow::ExecuteJavascriptInIFrame(
336 const string16& iframe_xpath, 336 const string16& iframe_xpath,
337 const string16& js) { 337 const string16& js) {
338 if (web_ui_) { 338 if (web_ui_) {
339 RenderViewHost* rvh = web_ui_->GetWebContents()->GetRenderViewHost(); 339 RenderViewHost* rvh = web_ui_->GetWebContents()->GetRenderViewHost();
340 rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js); 340 rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js);
341 } 341 }
342 } 342 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698