| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ |
| 6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ | 6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 void AppendVideoItems(); | 121 void AppendVideoItems(); |
| 122 void AppendMediaItems(); | 122 void AppendMediaItems(); |
| 123 void AppendPluginItems(); | 123 void AppendPluginItems(); |
| 124 void AppendPageItems(); | 124 void AppendPageItems(); |
| 125 void AppendCopyItem(); | 125 void AppendCopyItem(); |
| 126 void AppendPrintItem(); | 126 void AppendPrintItem(); |
| 127 void AppendMediaRouterItem(); | 127 void AppendMediaRouterItem(); |
| 128 void AppendRotationItems(); | 128 void AppendRotationItems(); |
| 129 void AppendEditableItems(); | 129 void AppendEditableItems(); |
| 130 void AppendLanguageSettings(); | 130 void AppendLanguageSettings(); |
| 131 void AppendSpellcheckSuggestionItems(); |
| 131 void AppendSearchProvider(); | 132 void AppendSearchProvider(); |
| 132 #if defined(ENABLE_EXTENSIONS) | 133 #if defined(ENABLE_EXTENSIONS) |
| 133 void AppendAllExtensionItems(); | 134 void AppendAllExtensionItems(); |
| 134 void AppendCurrentExtensionItems(); | 135 void AppendCurrentExtensionItems(); |
| 135 #endif | 136 #endif |
| 136 void AppendPrintPreviewItems(); | 137 void AppendPrintPreviewItems(); |
| 137 void AppendSearchWebForImageItems(); | 138 void AppendSearchWebForImageItems(); |
| 138 void AppendSpellingSuggestionsSubMenu(); | |
| 139 void AppendProtocolHandlerSubMenu(); | 139 void AppendProtocolHandlerSubMenu(); |
| 140 void AppendPasswordItems(); | 140 void AppendPasswordItems(); |
| 141 | 141 |
| 142 // Copy to the clipboard an image located at a point in the RenderView | 142 // Copy to the clipboard an image located at a point in the RenderView |
| 143 void CopyImageAt(int x, int y); | 143 void CopyImageAt(int x, int y); |
| 144 | 144 |
| 145 // Load the original image located at a point in the RenderView. | 145 // Load the original image located at a point in the RenderView. |
| 146 void LoadOriginalImage(); | 146 void LoadOriginalImage(); |
| 147 | 147 |
| 148 // Get an image located at a point in the RenderView for search. | 148 // Get an image located at a point in the RenderView for search. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 170 GURL selection_navigation_url_; | 170 GURL selection_navigation_url_; |
| 171 | 171 |
| 172 ui::SimpleMenuModel profile_link_submenu_model_; | 172 ui::SimpleMenuModel profile_link_submenu_model_; |
| 173 bool multiple_profiles_open_; | 173 bool multiple_profiles_open_; |
| 174 ui::SimpleMenuModel protocol_handler_submenu_model_; | 174 ui::SimpleMenuModel protocol_handler_submenu_model_; |
| 175 ProtocolHandlerRegistry* protocol_handler_registry_; | 175 ProtocolHandlerRegistry* protocol_handler_registry_; |
| 176 | 176 |
| 177 // An observer that handles spelling-menu items. | 177 // An observer that handles spelling-menu items. |
| 178 scoped_ptr<SpellingMenuObserver> spelling_menu_observer_; | 178 scoped_ptr<SpellingMenuObserver> spelling_menu_observer_; |
| 179 | 179 |
| 180 #if !defined(USE_BROWSER_SPELLCHECKER) |
| 181 // An observer that handles a 'spell-checker options' submenu. |
| 182 scoped_ptr<SpellCheckerSubMenuObserver> spellchecker_submenu_observer_; |
| 183 #endif |
| 184 |
| 180 #if defined(ENABLE_PRINT_PREVIEW) | 185 #if defined(ENABLE_PRINT_PREVIEW) |
| 181 // An observer that disables menu items when print preview is active. | 186 // An observer that disables menu items when print preview is active. |
| 182 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; | 187 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; |
| 183 #endif | 188 #endif |
| 184 | 189 |
| 185 // In the case of a MimeHandlerView this will point to the WebContents that | 190 // In the case of a MimeHandlerView this will point to the WebContents that |
| 186 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as | 191 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as |
| 187 // |source_web_contents_|. | 192 // |source_web_contents_|. |
| 188 content::WebContents* const embedder_web_contents_; | 193 content::WebContents* const embedder_web_contents_; |
| 189 | 194 |
| 190 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 195 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
| 191 }; | 196 }; |
| 192 | 197 |
| 193 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ | 198 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ |
| OLD | NEW |