OLD | NEW |
1 // Copyright (c) 2011 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/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/tab_contents/render_view_context_menu.h" | 10 #include "chrome/browser/tab_contents/render_view_context_menu.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 // Show the menu at the given location. | 25 // Show the menu at the given location. |
26 void Popup(const gfx::Point& point); | 26 void Popup(const gfx::Point& point); |
27 | 27 |
28 // Menu::Delegate implementation --------------------------------------------- | 28 // Menu::Delegate implementation --------------------------------------------- |
29 virtual bool AlwaysShowIconForCmd(int command_id) const; | 29 virtual bool AlwaysShowIconForCmd(int command_id) const; |
30 | 30 |
31 // RenderViewContextMenuDelegate implementation ------------------------------ | 31 // RenderViewContextMenuDelegate implementation ------------------------------ |
32 virtual void UpdateMenuItem(int command_id, | 32 virtual void UpdateMenuItem(int command_id, |
33 bool enabled, | 33 bool enabled, |
| 34 bool hidden, |
34 const string16& title) OVERRIDE; | 35 const string16& title) OVERRIDE; |
35 | 36 |
36 protected: | 37 protected: |
37 // RenderViewContextMenu implementation -------------------------------------- | 38 // RenderViewContextMenu implementation -------------------------------------- |
38 virtual void PlatformInit(); | 39 virtual void PlatformInit(); |
39 // TODO(port): implement. | 40 // TODO(port): implement. |
40 virtual bool GetAcceleratorForCommandId( | 41 virtual bool GetAcceleratorForCommandId( |
41 int command_id, | 42 int command_id, |
42 ui::Accelerator* accelerator); | 43 ui::Accelerator* accelerator); |
43 | 44 |
44 private: | 45 private: |
45 scoped_ptr<MenuGtk> menu_gtk_; | 46 scoped_ptr<MenuGtk> menu_gtk_; |
46 uint32_t triggering_event_time_; | 47 uint32_t triggering_event_time_; |
47 }; | 48 }; |
48 | 49 |
49 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_ | 50 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_ |
OLD | NEW |