| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 bool IsDevCommandEnabled(int id) const; | 161 bool IsDevCommandEnabled(int id) const; |
| 162 | 162 |
| 163 // Returns a list of registered ProtocolHandlers that can handle the clicked | 163 // Returns a list of registered ProtocolHandlers that can handle the clicked |
| 164 // on URL. | 164 // on URL. |
| 165 ProtocolHandlerRegistry::ProtocolHandlerList GetHandlersForLinkUrl(); | 165 ProtocolHandlerRegistry::ProtocolHandlerList GetHandlersForLinkUrl(); |
| 166 | 166 |
| 167 // The destination URL to use if the user tries to search for or navigate to | 167 // The destination URL to use if the user tries to search for or navigate to |
| 168 // a text selection. | 168 // a text selection. |
| 169 GURL selection_navigation_url_; | 169 GURL selection_navigation_url_; |
| 170 | 170 |
| 171 ui::SimpleMenuModel profile_link_submenu_model_; |
| 171 ui::SimpleMenuModel protocol_handler_submenu_model_; | 172 ui::SimpleMenuModel protocol_handler_submenu_model_; |
| 172 ProtocolHandlerRegistry* protocol_handler_registry_; | 173 ProtocolHandlerRegistry* protocol_handler_registry_; |
| 173 | 174 |
| 174 // An observer that handles spelling-menu items. | 175 // An observer that handles spelling-menu items. |
| 175 scoped_ptr<SpellingMenuObserver> spelling_menu_observer_; | 176 scoped_ptr<SpellingMenuObserver> spelling_menu_observer_; |
| 176 | 177 |
| 177 #if defined(ENABLE_PRINT_PREVIEW) | 178 #if defined(ENABLE_PRINT_PREVIEW) |
| 178 // An observer that disables menu items when print preview is active. | 179 // An observer that disables menu items when print preview is active. |
| 179 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; | 180 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; |
| 180 #endif | 181 #endif |
| 181 | 182 |
| 182 // In the case of a MimeHandlerView this will point to the WebContents that | 183 // In the case of a MimeHandlerView this will point to the WebContents that |
| 183 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as | 184 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as |
| 184 // |source_web_contents_|. | 185 // |source_web_contents_|. |
| 185 content::WebContents* const embedder_web_contents_; | 186 content::WebContents* const embedder_web_contents_; |
| 186 | 187 |
| 187 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 188 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
| 188 }; | 189 }; |
| 189 | 190 |
| 190 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ | 191 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ |
| OLD | NEW |