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

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

Issue 1994793002: Delete IDC_CONTENT_CONTEXT_VIEWPAGEINFO and unused strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete IDS_CONTENT_CONTEXT_VIEWFRAMEINFO Created 4 years, 7 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
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/print_preview_context_menu_observer.h" 5 #include "chrome/browser/printing/print_preview_context_menu_observer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/app/chrome_command_ids.h" 8 #include "chrome/app/chrome_command_ids.h"
9 #include "chrome/browser/printing/print_preview_dialog_controller.h" 9 #include "chrome/browser/printing/print_preview_dialog_controller.h"
10 10
(...skipping 10 matching lines...) Expand all
21 if (!controller) 21 if (!controller)
22 return false; 22 return false;
23 return (controller->GetPrintPreviewForContents(contents_) != nullptr); 23 return (controller->GetPrintPreviewForContents(contents_) != nullptr);
24 } 24 }
25 25
26 bool PrintPreviewContextMenuObserver::IsCommandIdSupported(int command_id) { 26 bool PrintPreviewContextMenuObserver::IsCommandIdSupported(int command_id) {
27 switch (command_id) { 27 switch (command_id) {
28 case IDC_PRINT: 28 case IDC_PRINT:
29 case IDC_VIEW_SOURCE: 29 case IDC_VIEW_SOURCE:
30 case IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE: 30 case IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE:
31 case IDC_CONTENT_CONTEXT_VIEWPAGEINFO:
32 case IDC_CONTENT_CONTEXT_SEARCHWEBFOR: 31 case IDC_CONTENT_CONTEXT_SEARCHWEBFOR:
33 return IsPrintPreviewDialog(); 32 return IsPrintPreviewDialog();
34 33
35 default: 34 default:
36 return false; 35 return false;
37 } 36 }
38 } 37 }
39 38
40 bool PrintPreviewContextMenuObserver::IsCommandIdEnabled(int command_id) { 39 bool PrintPreviewContextMenuObserver::IsCommandIdEnabled(int command_id) {
41 switch (command_id) { 40 switch (command_id) {
42 case IDC_PRINT: 41 case IDC_PRINT:
43 case IDC_VIEW_SOURCE: 42 case IDC_VIEW_SOURCE:
44 case IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE: 43 case IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE:
45 case IDC_CONTENT_CONTEXT_VIEWPAGEINFO:
46 case IDC_CONTENT_CONTEXT_SEARCHWEBFOR: 44 case IDC_CONTENT_CONTEXT_SEARCHWEBFOR:
47 return false; 45 return false;
48 46
49 default: 47 default:
50 NOTREACHED(); 48 NOTREACHED();
51 return true; 49 return true;
52 } 50 }
53 } 51 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/renderer_context_menu/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698