OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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" | 10 #include "chrome/browser/gtk/menu_gtk.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 // Menu::Delegate implementation --------------------------------------------- | 28 // Menu::Delegate implementation --------------------------------------------- |
29 virtual void StoppedShowing(); | 29 virtual void StoppedShowing(); |
30 virtual bool AlwaysShowIconForCmd(int command_id) const; | 30 virtual bool AlwaysShowIconForCmd(int command_id) const; |
31 | 31 |
32 protected: | 32 protected: |
33 // RenderViewContextMenu implementation -------------------------------------- | 33 // RenderViewContextMenu implementation -------------------------------------- |
34 virtual void PlatformInit(); | 34 virtual void PlatformInit(); |
35 // TODO(port): implement. | 35 // TODO(port): implement. |
36 virtual bool GetAcceleratorForCommandId( | 36 virtual bool GetAcceleratorForCommandId( |
37 int command_id, | 37 int command_id, |
38 menus::Accelerator* accelerator) { | 38 menus::Accelerator* accelerator); |
39 return false; | |
40 } | |
41 | 39 |
42 private: | 40 private: |
43 scoped_ptr<MenuGtk> menu_gtk_; | 41 scoped_ptr<MenuGtk> menu_gtk_; |
44 uint32_t triggering_event_time_; | 42 uint32_t triggering_event_time_; |
45 }; | 43 }; |
46 | 44 |
47 #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 |