| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 string16 PrintableSelectionText(); | 279 string16 PrintableSelectionText(); |
| 280 | 280 |
| 281 // The destination URL to use if the user tries to search for or navigate to | 281 // The destination URL to use if the user tries to search for or navigate to |
| 282 // a text selection. | 282 // a text selection. |
| 283 GURL selection_navigation_url_; | 283 GURL selection_navigation_url_; |
| 284 | 284 |
| 285 ui::SimpleMenuModel speech_input_submenu_model_; | 285 ui::SimpleMenuModel speech_input_submenu_model_; |
| 286 ui::SimpleMenuModel bidi_submenu_model_; | 286 ui::SimpleMenuModel bidi_submenu_model_; |
| 287 ui::SimpleMenuModel protocol_handler_submenu_model_; | 287 ui::SimpleMenuModel protocol_handler_submenu_model_; |
| 288 ScopedVector<ui::SimpleMenuModel> extension_menu_models_; | 288 ScopedVector<ui::SimpleMenuModel> extension_menu_models_; |
| 289 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; | 289 ProtocolHandlerRegistry* protocol_handler_registry_; |
| 290 | 290 |
| 291 // An observer that handles spelling-menu items. | 291 // An observer that handles spelling-menu items. |
| 292 scoped_ptr<SpellingMenuObserver> spelling_menu_observer_; | 292 scoped_ptr<SpellingMenuObserver> spelling_menu_observer_; |
| 293 | 293 |
| 294 // An observer that handles a 'spell-checker options' submenu. | 294 // An observer that handles a 'spell-checker options' submenu. |
| 295 scoped_ptr<SpellCheckerSubMenuObserver> spellchecker_submenu_observer_; | 295 scoped_ptr<SpellCheckerSubMenuObserver> spellchecker_submenu_observer_; |
| 296 | 296 |
| 297 // An observer that disables menu items when print preview is active. | 297 // An observer that disables menu items when print preview is active. |
| 298 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; | 298 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; |
| 299 | 299 |
| 300 // Our observers. | 300 // Our observers. |
| 301 mutable ObserverList<RenderViewContextMenuObserver> observers_; | 301 mutable ObserverList<RenderViewContextMenuObserver> observers_; |
| 302 | 302 |
| 303 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 303 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
| 304 }; | 304 }; |
| 305 | 305 |
| 306 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 306 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
| OLD | NEW |