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_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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 void AppendVideoItems(); | 104 void AppendVideoItems(); |
105 void AppendMediaItems(); | 105 void AppendMediaItems(); |
106 void AppendPluginItems(); | 106 void AppendPluginItems(); |
107 void AppendPageItems(); | 107 void AppendPageItems(); |
108 void AppendFrameItems(); | 108 void AppendFrameItems(); |
109 void AppendCopyItem(); | 109 void AppendCopyItem(); |
110 void AppendEditableItems(); | 110 void AppendEditableItems(); |
111 void AppendSearchProvider(); | 111 void AppendSearchProvider(); |
112 void AppendAllExtensionItems(); | 112 void AppendAllExtensionItems(); |
113 void AppendSpellcheckOptionsSubMenu(); | 113 void AppendSpellcheckOptionsSubMenu(); |
| 114 void AppendSpeechInputOptionsSubMenu(); |
114 // Add writing direction sub menu (only used on Mac). | 115 // Add writing direction sub menu (only used on Mac). |
115 void AppendBidiSubMenu(); | 116 void AppendBidiSubMenu(); |
116 void AppendProtocolHandlerSubMenu(); | 117 void AppendProtocolHandlerSubMenu(); |
117 | 118 |
118 // This is a helper function to append items for one particular extension. | 119 // This is a helper function to append items for one particular extension. |
119 // The |index| parameter is used for assigning id's, and is incremented for | 120 // The |index| parameter is used for assigning id's, and is incremented for |
120 // each item actually added. | 121 // each item actually added. |
121 void AppendExtensionItems(const std::string& extension_id, int* index); | 122 void AppendExtensionItems(const std::string& extension_id, int* index); |
122 | 123 |
123 // Used for recursively adding submenus of extension items. | 124 // Used for recursively adding submenus of extension items. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 156 |
156 // Returns a (possibly truncated) version of the current selection text | 157 // Returns a (possibly truncated) version of the current selection text |
157 // suitable or putting in the title of a menu item. | 158 // suitable or putting in the title of a menu item. |
158 string16 PrintableSelectionText(); | 159 string16 PrintableSelectionText(); |
159 | 160 |
160 // The destination URL to use if the user tries to search for or navigate to | 161 // The destination URL to use if the user tries to search for or navigate to |
161 // a text selection. | 162 // a text selection. |
162 GURL selection_navigation_url_; | 163 GURL selection_navigation_url_; |
163 | 164 |
164 ui::SimpleMenuModel spellcheck_submenu_model_; | 165 ui::SimpleMenuModel spellcheck_submenu_model_; |
| 166 ui::SimpleMenuModel speech_input_submenu_model_; |
165 ui::SimpleMenuModel bidi_submenu_model_; | 167 ui::SimpleMenuModel bidi_submenu_model_; |
166 ui::SimpleMenuModel protocol_handler_submenu_model_; | 168 ui::SimpleMenuModel protocol_handler_submenu_model_; |
167 ScopedVector<ui::SimpleMenuModel> extension_menu_models_; | 169 ScopedVector<ui::SimpleMenuModel> extension_menu_models_; |
168 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; | 170 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; |
169 | 171 |
170 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 172 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
171 }; | 173 }; |
172 | 174 |
173 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 175 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
OLD | NEW |