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

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

Issue 8879046: Print preview: Disable the right context menu items in print preview. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PRINTING_PRINT_PREVIEW_CONTEXT_MENU_OBSERVER_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_CONTEXT_MENU_OBSERVER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "chrome/browser/tab_contents/render_view_context_menu_observer.h"
12
13 class TabContentsWrapper;
14
15 class PrintPreviewContextMenuObserver : public RenderViewContextMenuObserver {
16 public:
17 explicit PrintPreviewContextMenuObserver(TabContentsWrapper* tab);
18 virtual ~PrintPreviewContextMenuObserver();
19
20 // RenderViewContextMenuObserver implementation.
21 virtual bool IsCommandIdSupported(int command_id) OVERRIDE;
22 virtual bool IsCommandIdEnabled(int command_id) OVERRIDE;
23
24 private:
25 bool IsPrintPreviewTab();
26
27 TabContentsWrapper* tab_;
28
29 DISALLOW_COPY_AND_ASSIGN(PrintPreviewContextMenuObserver);
30 };
31
32 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_CONTEXT_MENU_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698