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

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

Issue 10535045: TabContentsWrapper -> TabContents, for printing code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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) 2011 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_tab_controller.h" 9 #include "chrome/browser/printing/print_preview_tab_controller.h"
10 10
11 PrintPreviewContextMenuObserver::PrintPreviewContextMenuObserver( 11 PrintPreviewContextMenuObserver::PrintPreviewContextMenuObserver(
12 TabContentsWrapper* tab) : tab_(tab) { 12 TabContents* tab) : tab_(tab) {
13 } 13 }
14 14
15 PrintPreviewContextMenuObserver::~PrintPreviewContextMenuObserver() { 15 PrintPreviewContextMenuObserver::~PrintPreviewContextMenuObserver() {
16 } 16 }
17 17
18 bool PrintPreviewContextMenuObserver::IsPrintPreviewTab() { 18 bool PrintPreviewContextMenuObserver::IsPrintPreviewTab() {
19 printing::PrintPreviewTabController* controller = 19 printing::PrintPreviewTabController* controller =
20 printing::PrintPreviewTabController::GetInstance(); 20 printing::PrintPreviewTabController::GetInstance();
21 if (!controller) 21 if (!controller)
22 return false; 22 return false;
(...skipping 21 matching lines...) Expand all
44 case IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE: 44 case IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE:
45 case IDC_CONTENT_CONTEXT_VIEWPAGEINFO: 45 case IDC_CONTENT_CONTEXT_VIEWPAGEINFO:
46 case IDC_CONTENT_CONTEXT_SEARCHWEBFOR: 46 case IDC_CONTENT_CONTEXT_SEARCHWEBFOR:
47 return false; 47 return false;
48 48
49 default: 49 default:
50 NOTREACHED(); 50 NOTREACHED();
51 return true; 51 return true;
52 } 52 }
53 } 53 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_preview_context_menu_observer.h ('k') | chrome/browser/printing/print_preview_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698