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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.h

Issue 2811049: Add ability to limit when context menu items appear with url patterns.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/render_view_context_menu.h
===================================================================
--- chrome/browser/tab_contents/render_view_context_menu.h (revision 52866)
+++ chrome/browser/tab_contents/render_view_context_menu.h (working copy)
@@ -53,6 +53,9 @@
int command_id,
menus::Accelerator* accelerator) = 0;
+ // Attempts to get an ExtensionMenuItem given the id of a context menu item.
+ ExtensionMenuItem* GetExtensionMenuItem(int id) const;
+
ContextMenuParams params_;
TabContents* source_tab_contents_;
Profile* profile_;
@@ -62,6 +65,11 @@
// True if we are showing for an external tab contents. The default is false.
bool external_;
+
+ // Maps the id from a context menu item to the ExtensionMenuItem's internal
+ // id.
+ std::map<int, ExtensionMenuItem::Id> extension_item_map_;
+
private:
static bool IsDevToolsURL(const GURL& url);
static bool IsSyncResourcesURL(const GURL& url);
@@ -119,17 +127,10 @@
// suitable or putting in the title of a menu item.
string16 PrintableSelectionText();
- // Attempts to get an ExtensionMenuItem given the id of a context menu item.
- ExtensionMenuItem* GetExtensionMenuItem(int id) const;
-
// The destination URL to use if the user tries to search for or navigate to
// a text selection.
GURL selection_navigation_url_;
- // Maps the id from a context menu item to the ExtensionMenuItem's internal
- // id.
- std::map<int, ExtensionMenuItem::Id> extension_item_map_;
-
menus::SimpleMenuModel spellcheck_submenu_model_;
menus::SimpleMenuModel bidi_submenu_model_;
ScopedVector<menus::SimpleMenuModel> extension_menu_models_;
« no previous file with comments | « chrome/browser/extensions/extension_menu_manager.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