OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "chrome/browser/gtk/menu_gtk.h" | |
11 #include "chrome/browser/tab_contents/render_view_context_menu.h" | 10 #include "chrome/browser/tab_contents/render_view_context_menu.h" |
| 11 #include "chrome/browser/ui/gtk/menu_gtk.h" |
12 #include "gfx/point.h" | 12 #include "gfx/point.h" |
13 | 13 |
14 struct ContextMenuParams; | 14 struct ContextMenuParams; |
15 | 15 |
16 class RenderViewContextMenuGtk : public RenderViewContextMenu, | 16 class RenderViewContextMenuGtk : public RenderViewContextMenu, |
17 public MenuGtk::Delegate { | 17 public MenuGtk::Delegate { |
18 public: | 18 public: |
19 RenderViewContextMenuGtk(TabContents* web_contents, | 19 RenderViewContextMenuGtk(TabContents* web_contents, |
20 const ContextMenuParams& params, | 20 const ContextMenuParams& params, |
21 uint32_t triggering_event_time); | 21 uint32_t triggering_event_time); |
(...skipping 14 matching lines...) Expand all Loading... |
36 virtual bool GetAcceleratorForCommandId( | 36 virtual bool GetAcceleratorForCommandId( |
37 int command_id, | 37 int command_id, |
38 ui::Accelerator* accelerator); | 38 ui::Accelerator* accelerator); |
39 | 39 |
40 private: | 40 private: |
41 scoped_ptr<MenuGtk> menu_gtk_; | 41 scoped_ptr<MenuGtk> menu_gtk_; |
42 uint32_t triggering_event_time_; | 42 uint32_t triggering_event_time_; |
43 }; | 43 }; |
44 | 44 |
45 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_ | 45 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_ |
OLD | NEW |