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

Side by Side Diff: chrome/browser/printing/print_dialog_cloud.cc

Issue 6879006: Disable the context menu on the keyboard overlay and the print dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 8 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 | « no previous file | chrome/browser/printing/print_dialog_cloud_internal.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/print_dialog_cloud.h" 5 #include "chrome/browser/printing/print_dialog_cloud.h"
6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" 6 #include "chrome/browser/printing/print_dialog_cloud_internal.h"
7 7
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 void CloudPrintHtmlDialogDelegate::OnCloseContents(TabContents* source, 499 void CloudPrintHtmlDialogDelegate::OnCloseContents(TabContents* source,
500 bool* out_close_dialog) { 500 bool* out_close_dialog) {
501 if (out_close_dialog) 501 if (out_close_dialog)
502 *out_close_dialog = true; 502 *out_close_dialog = true;
503 } 503 }
504 504
505 bool CloudPrintHtmlDialogDelegate::ShouldShowDialogTitle() const { 505 bool CloudPrintHtmlDialogDelegate::ShouldShowDialogTitle() const {
506 return false; 506 return false;
507 } 507 }
508 508
509 bool CloudPrintHtmlDialogDelegate::HandleContextMenu(
510 const ContextMenuParams& params) {
511 return true;
512 }
513
509 // Called from the UI thread, starts up the dialog. 514 // Called from the UI thread, starts up the dialog.
510 void CreateDialogImpl(const FilePath& path_to_file, 515 void CreateDialogImpl(const FilePath& path_to_file,
511 const string16& print_job_title, 516 const string16& print_job_title,
512 const std::string& file_type, 517 const std::string& file_type,
513 bool modal) { 518 bool modal) {
514 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 519 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
515 Browser* browser = BrowserList::GetLastActive(); 520 Browser* browser = BrowserList::GetLastActive();
516 521
517 const int kDefaultWidth = 497; 522 const int kDefaultWidth = 497;
518 const int kDefaultHeight = 332; 523 const int kDefaultHeight = 332;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 print_job_title, 611 print_job_title,
607 file_type, 612 file_type,
608 false); 613 false);
609 return true; 614 return true;
610 } 615 }
611 } 616 }
612 return false; 617 return false;
613 } 618 }
614 619
615 } // end namespace 620 } // end namespace
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/print_dialog_cloud_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698