Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / printing / print_preview_context_menu_observer.h
blobe1a11ef2b286bbb0effe6d9ecf527c00bedcc05f
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_PRINTING_PRINT_PREVIEW_CONTEXT_MENU_OBSERVER_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_CONTEXT_MENU_OBSERVER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "components/renderer_context_menu/render_view_context_menu_observer.h"
12 namespace content {
13 class WebContents;
16 class PrintPreviewContextMenuObserver : public RenderViewContextMenuObserver {
17 public:
18 explicit PrintPreviewContextMenuObserver(content::WebContents* contents);
19 ~PrintPreviewContextMenuObserver() override;
21 // RenderViewContextMenuObserver implementation.
22 bool IsCommandIdSupported(int command_id) override;
23 bool IsCommandIdEnabled(int command_id) override;
25 private:
26 bool IsPrintPreviewDialog();
28 content::WebContents* contents_;
30 DISALLOW_COPY_AND_ASSIGN(PrintPreviewContextMenuObserver);
33 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_CONTEXT_MENU_OBSERVER_H_