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

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

Issue 10700155: Remove #pragma once from chrome/browser/{printing,safe_browsing,prefs,bookmarks,autocomplete} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 #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
8 7
9 #include "base/basictypes.h" 8 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
11 #include "chrome/browser/tab_contents/render_view_context_menu_observer.h" 10 #include "chrome/browser/tab_contents/render_view_context_menu_observer.h"
12 11
13 class TabContents; 12 class TabContents;
14 13
15 class PrintPreviewContextMenuObserver : public RenderViewContextMenuObserver { 14 class PrintPreviewContextMenuObserver : public RenderViewContextMenuObserver {
16 public: 15 public:
17 explicit PrintPreviewContextMenuObserver(TabContents* tab); 16 explicit PrintPreviewContextMenuObserver(TabContents* tab);
18 virtual ~PrintPreviewContextMenuObserver(); 17 virtual ~PrintPreviewContextMenuObserver();
19 18
20 // RenderViewContextMenuObserver implementation. 19 // RenderViewContextMenuObserver implementation.
21 virtual bool IsCommandIdSupported(int command_id) OVERRIDE; 20 virtual bool IsCommandIdSupported(int command_id) OVERRIDE;
22 virtual bool IsCommandIdEnabled(int command_id) OVERRIDE; 21 virtual bool IsCommandIdEnabled(int command_id) OVERRIDE;
23 22
24 private: 23 private:
25 bool IsPrintPreviewTab(); 24 bool IsPrintPreviewTab();
26 25
27 TabContents* tab_; 26 TabContents* tab_;
28 27
29 DISALLOW_COPY_AND_ASSIGN(PrintPreviewContextMenuObserver); 28 DISALLOW_COPY_AND_ASSIGN(PrintPreviewContextMenuObserver);
30 }; 29 };
31 30
32 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_CONTEXT_MENU_OBSERVER_H_ 31 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_CONTEXT_MENU_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_job_worker_owner.h ('k') | chrome/browser/printing/print_preview_data_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698