Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu.h

Issue 18223002: InstantExtended: Remove overlay control code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Call renamed method. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
16 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 16 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
17 #include "chrome/browser/extensions/context_menu_matcher.h" 17 #include "chrome/browser/extensions/context_menu_matcher.h"
18 #include "chrome/browser/extensions/menu_manager.h" 18 #include "chrome/browser/extensions/menu_manager.h"
19 #include "chrome/browser/tab_contents/render_view_context_menu_observer.h" 19 #include "chrome/browser/tab_contents/render_view_context_menu_observer.h"
20 #include "content/public/common/context_menu_params.h" 20 #include "content/public/common/context_menu_params.h"
21 #include "content/public/common/page_transition_types.h" 21 #include "content/public/common/page_transition_types.h"
22 #include "ui/base/models/simple_menu_model.h" 22 #include "ui/base/models/simple_menu_model.h"
23 #include "ui/base/window_open_disposition.h" 23 #include "ui/base/window_open_disposition.h"
24 24
25 class InstantExtendedContextMenuObserver;
26 class PrintPreviewContextMenuObserver; 25 class PrintPreviewContextMenuObserver;
27 class Profile; 26 class Profile;
28 class SpellingMenuObserver; 27 class SpellingMenuObserver;
29 class SpellCheckerSubMenuObserver; 28 class SpellCheckerSubMenuObserver;
30 29
31 namespace content { 30 namespace content {
32 class RenderViewHost; 31 class RenderViewHost;
33 class WebContents; 32 class WebContents;
34 } 33 }
35 34
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 269
271 // An observer that handles spelling-menu items. 270 // An observer that handles spelling-menu items.
272 scoped_ptr<SpellingMenuObserver> spelling_menu_observer_; 271 scoped_ptr<SpellingMenuObserver> spelling_menu_observer_;
273 272
274 // An observer that handles a 'spell-checker options' submenu. 273 // An observer that handles a 'spell-checker options' submenu.
275 scoped_ptr<SpellCheckerSubMenuObserver> spellchecker_submenu_observer_; 274 scoped_ptr<SpellCheckerSubMenuObserver> spellchecker_submenu_observer_;
276 275
277 // An observer that disables menu items when print preview is active. 276 // An observer that disables menu items when print preview is active.
278 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; 277 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_;
279 278
280 // An observer that disables menu items for instant extended mode.
281 scoped_ptr<InstantExtendedContextMenuObserver> instant_extended_observer_;
282
283 // Our observers. 279 // Our observers.
284 mutable ObserverList<RenderViewContextMenuObserver> observers_; 280 mutable ObserverList<RenderViewContextMenuObserver> observers_;
285 281
286 // Whether a command has been executed. Used to track whether menu observers 282 // Whether a command has been executed. Used to track whether menu observers
287 // should be notified of menu closing without execution. 283 // should be notified of menu closing without execution.
288 bool command_executed_; 284 bool command_executed_;
289 285
290 // Whether or not the menu was triggered for a browser plugin guest. 286 // Whether or not the menu was triggered for a browser plugin guest.
291 // Guests are rendered inside chrome apps, but have most of the actions 287 // Guests are rendered inside chrome apps, but have most of the actions
292 // that a regular web page has. 288 // that a regular web page has.
293 // Currently actions/items that are suppressed from guests are: searching, 289 // Currently actions/items that are suppressed from guests are: searching,
294 // printing, speech and instant. 290 // printing, speech and instant.
295 bool is_guest_; 291 bool is_guest_;
296 292
297 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); 293 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
298 }; 294 };
299 295
300 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 296 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/search/search.cc ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698