| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_EXTERNAL_WIN_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_EXTERNAL_WIN_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_EXTERNAL_WIN_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_EXTERNAL_WIN_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "chrome/browser/views/tab_contents/render_view_context_menu_win.h" | 10 #include "chrome/browser/views/tab_contents/render_view_context_menu_win.h" |
| 11 | 11 |
| 12 // This class provides a facility for an external host to customize the context | 12 // This class provides a facility for an external host to customize the context |
| 13 // menu displayed in Chrome. | 13 // menu displayed in Chrome. |
| 14 class RenderViewContextMenuExternalWin : public RenderViewContextMenuWin { | 14 class RenderViewContextMenuExternalWin : public RenderViewContextMenuWin { |
| 15 public: | 15 public: |
| 16 RenderViewContextMenuExternalWin(TabContents* tab_contents, | 16 RenderViewContextMenuExternalWin(TabContents* tab_contents, |
| 17 const ContextMenuParams& params, | 17 const ContextMenuParams& params, |
| 18 const std::vector<int> disabled_menu_ids); | 18 const std::vector<int> disabled_menu_ids); |
| 19 | 19 |
| 20 ~RenderViewContextMenuExternalWin() {} | 20 virtual ~RenderViewContextMenuExternalWin() {} |
| 21 | 21 |
| 22 protected: | 22 protected: |
| 23 // RenderViewContextMenuWin overrides -------------------------------------- | 23 // RenderViewContextMenuWin overrides -------------------------------------- |
| 24 virtual void AppendMenuItem(int id); | 24 virtual void AppendMenuItem(int id); |
| 25 | 25 |
| 26 // RenderViewContextMenu override | 26 // RenderViewContextMenu override |
| 27 virtual void DoInit(); | 27 virtual void DoInit(); |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 // Contains the list of context menu ids to be disabled. | 30 // Contains the list of context menu ids to be disabled. |
| 31 std::vector<int> disabled_menu_ids_; | 31 std::vector<int> disabled_menu_ids_; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_EXTERNAL_WIN_H_ | 34 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_EXTERNAL_WIN_H_ |
| OLD | NEW |