| 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_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 virtual void ExecuteCommand(int command_id); | 49 virtual void ExecuteCommand(int command_id); |
| 50 | 50 |
| 51 protected: | 51 protected: |
| 52 void InitMenu(); | 52 void InitMenu(); |
| 53 | 53 |
| 54 // Platform specific functions. | 54 // Platform specific functions. |
| 55 virtual void PlatformInit() = 0; | 55 virtual void PlatformInit() = 0; |
| 56 virtual bool GetAcceleratorForCommandId( | 56 virtual bool GetAcceleratorForCommandId( |
| 57 int command_id, | 57 int command_id, |
| 58 menus::Accelerator* accelerator) = 0; | 58 menus::Accelerator* accelerator) = 0; |
| 59 virtual void LookUpInDictionary(); |
| 59 | 60 |
| 60 // Attempts to get an ExtensionMenuItem given the id of a context menu item. | 61 // Attempts to get an ExtensionMenuItem given the id of a context menu item. |
| 61 ExtensionMenuItem* GetExtensionMenuItem(int id) const; | 62 ExtensionMenuItem* GetExtensionMenuItem(int id) const; |
| 62 | 63 |
| 63 ContextMenuParams params_; | 64 ContextMenuParams params_; |
| 64 TabContents* source_tab_contents_; | 65 TabContents* source_tab_contents_; |
| 65 Profile* profile_; | 66 Profile* profile_; |
| 66 | 67 |
| 67 menus::SimpleMenuModel menu_model_; | 68 menus::SimpleMenuModel menu_model_; |
| 68 | 69 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 GURL selection_navigation_url_; | 137 GURL selection_navigation_url_; |
| 137 | 138 |
| 138 menus::SimpleMenuModel spellcheck_submenu_model_; | 139 menus::SimpleMenuModel spellcheck_submenu_model_; |
| 139 menus::SimpleMenuModel bidi_submenu_model_; | 140 menus::SimpleMenuModel bidi_submenu_model_; |
| 140 ScopedVector<menus::SimpleMenuModel> extension_menu_models_; | 141 ScopedVector<menus::SimpleMenuModel> extension_menu_models_; |
| 141 | 142 |
| 142 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 143 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 146 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
| OLD | NEW |