| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 ui::SimpleMenuModel protocol_handler_submenu_model_; | 269 ui::SimpleMenuModel protocol_handler_submenu_model_; |
| 270 ScopedVector<ui::SimpleMenuModel> extension_menu_models_; | 270 ScopedVector<ui::SimpleMenuModel> extension_menu_models_; |
| 271 ProtocolHandlerRegistry* protocol_handler_registry_; | 271 ProtocolHandlerRegistry* protocol_handler_registry_; |
| 272 | 272 |
| 273 // An observer that handles spelling-menu items. | 273 // An observer that handles spelling-menu items. |
| 274 scoped_ptr<SpellingMenuObserver> spelling_menu_observer_; | 274 scoped_ptr<SpellingMenuObserver> spelling_menu_observer_; |
| 275 | 275 |
| 276 // An observer that handles a 'spell-checker options' submenu. | 276 // An observer that handles a 'spell-checker options' submenu. |
| 277 scoped_ptr<SpellCheckerSubMenuObserver> spellchecker_submenu_observer_; | 277 scoped_ptr<SpellCheckerSubMenuObserver> spellchecker_submenu_observer_; |
| 278 | 278 |
| 279 #if defined(ENABLE_FULL_PRINTING) |
| 279 // An observer that disables menu items when print preview is active. | 280 // An observer that disables menu items when print preview is active. |
| 280 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; | 281 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; |
| 282 #endif |
| 281 | 283 |
| 282 // Our observers. | 284 // Our observers. |
| 283 mutable ObserverList<RenderViewContextMenuObserver> observers_; | 285 mutable ObserverList<RenderViewContextMenuObserver> observers_; |
| 284 | 286 |
| 285 // Whether a command has been executed. Used to track whether menu observers | 287 // Whether a command has been executed. Used to track whether menu observers |
| 286 // should be notified of menu closing without execution. | 288 // should be notified of menu closing without execution. |
| 287 bool command_executed_; | 289 bool command_executed_; |
| 288 | 290 |
| 289 // Whether or not the menu was triggered for a browser plugin guest. | 291 // Whether or not the menu was triggered for a browser plugin guest. |
| 290 // Guests are rendered inside chrome apps, but have most of the actions | 292 // Guests are rendered inside chrome apps, but have most of the actions |
| 291 // that a regular web page has. | 293 // that a regular web page has. |
| 292 // Currently actions/items that are suppressed from guests are: searching, | 294 // Currently actions/items that are suppressed from guests are: searching, |
| 293 // printing, speech and instant. | 295 // printing, speech and instant. |
| 294 bool is_guest_; | 296 bool is_guest_; |
| 295 | 297 |
| 296 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 298 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
| 297 }; | 299 }; |
| 298 | 300 |
| 299 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 301 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
| OLD | NEW |