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

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

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 #ifndef CHROME_BROWSER_PRINTING_PRINT_PREVIEW_CONTEXT_MENU_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_PREVIEW_CONTEXT_MENU_OBSERVER_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_CONTEXT_MENU_OBSERVER_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_CONTEXT_MENU_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/tab_contents/render_view_context_menu_observer.h" 11 #include "chrome/browser/tab_contents/render_view_context_menu_observer.h"
12 12
13 class TabContents; 13 class TabContents;
14 typedef TabContents TabContentsWrapper;
15 14
16 class PrintPreviewContextMenuObserver : public RenderViewContextMenuObserver { 15 class PrintPreviewContextMenuObserver : public RenderViewContextMenuObserver {
17 public: 16 public:
18 explicit PrintPreviewContextMenuObserver(TabContentsWrapper* tab); 17 explicit PrintPreviewContextMenuObserver(TabContents* tab);
19 virtual ~PrintPreviewContextMenuObserver(); 18 virtual ~PrintPreviewContextMenuObserver();
20 19
21 // RenderViewContextMenuObserver implementation. 20 // RenderViewContextMenuObserver implementation.
22 virtual bool IsCommandIdSupported(int command_id) OVERRIDE; 21 virtual bool IsCommandIdSupported(int command_id) OVERRIDE;
23 virtual bool IsCommandIdEnabled(int command_id) OVERRIDE; 22 virtual bool IsCommandIdEnabled(int command_id) OVERRIDE;
24 23
25 private: 24 private:
26 bool IsPrintPreviewTab(); 25 bool IsPrintPreviewTab();
27 26
28 TabContentsWrapper* tab_; 27 TabContents* tab_;
29 28
30 DISALLOW_COPY_AND_ASSIGN(PrintPreviewContextMenuObserver); 29 DISALLOW_COPY_AND_ASSIGN(PrintPreviewContextMenuObserver);
31 }; 30 };
32 31
33 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_CONTEXT_MENU_OBSERVER_H_ 32 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_CONTEXT_MENU_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/background_printing_manager.cc ('k') | chrome/browser/printing/print_preview_context_menu_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698