| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 ProtocolHandlerRegistry::ProtocolHandlerList GetHandlersForLinkUrl(); | 159 ProtocolHandlerRegistry::ProtocolHandlerList GetHandlersForLinkUrl(); |
| 160 | 160 |
| 161 // Returns a (possibly truncated) version of the current selection text | 161 // Returns a (possibly truncated) version of the current selection text |
| 162 // suitable or putting in the title of a menu item. | 162 // suitable or putting in the title of a menu item. |
| 163 base::string16 PrintableSelectionText(); | 163 base::string16 PrintableSelectionText(); |
| 164 | 164 |
| 165 // The destination URL to use if the user tries to search for or navigate to | 165 // The destination URL to use if the user tries to search for or navigate to |
| 166 // a text selection. | 166 // a text selection. |
| 167 GURL selection_navigation_url_; | 167 GURL selection_navigation_url_; |
| 168 | 168 |
| 169 ui::SimpleMenuModel profile_link_submenu_model_; |
| 169 ui::SimpleMenuModel protocol_handler_submenu_model_; | 170 ui::SimpleMenuModel protocol_handler_submenu_model_; |
| 170 ProtocolHandlerRegistry* protocol_handler_registry_; | 171 ProtocolHandlerRegistry* protocol_handler_registry_; |
| 171 | 172 |
| 172 // An observer that handles spelling-menu items. | 173 // An observer that handles spelling-menu items. |
| 173 scoped_ptr<SpellingMenuObserver> spelling_menu_observer_; | 174 scoped_ptr<SpellingMenuObserver> spelling_menu_observer_; |
| 174 | 175 |
| 175 // An observer that handles a 'spell-checker options' submenu. | 176 // An observer that handles a 'spell-checker options' submenu. |
| 176 scoped_ptr<SpellCheckerSubMenuObserver> spellchecker_submenu_observer_; | 177 scoped_ptr<SpellCheckerSubMenuObserver> spellchecker_submenu_observer_; |
| 177 | 178 |
| 178 #if defined(ENABLE_PRINT_PREVIEW) | 179 #if defined(ENABLE_PRINT_PREVIEW) |
| 179 // An observer that disables menu items when print preview is active. | 180 // An observer that disables menu items when print preview is active. |
| 180 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; | 181 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; |
| 181 #endif | 182 #endif |
| 182 | 183 |
| 183 // In the case of a MimeHandlerView this will point to the WebContents that | 184 // In the case of a MimeHandlerView this will point to the WebContents that |
| 184 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as | 185 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as |
| 185 // |source_web_contents_|. | 186 // |source_web_contents_|. |
| 186 content::WebContents* const embedder_web_contents_; | 187 content::WebContents* const embedder_web_contents_; |
| 187 | 188 |
| 188 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 189 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
| 189 }; | 190 }; |
| 190 | 191 |
| 191 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ | 192 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ |
| OLD | NEW |