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

Unified Diff: trunk/src/chrome/browser/extensions/context_menu_matcher.h

Issue 455023002: Revert 288418 "Extend contextMenus API to support browser/page a..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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: trunk/src/chrome/browser/extensions/context_menu_matcher.h
===================================================================
--- trunk/src/chrome/browser/extensions/context_menu_matcher.h (revision 288421)
+++ trunk/src/chrome/browser/extensions/context_menu_matcher.h (working copy)
@@ -43,13 +43,10 @@
// This is a helper function to append items for one particular extension.
// The |index| parameter is used for assigning id's, and is incremented for
- // each item actually added. |is_action_menu| is used for browser and page
- // action context menus, in which menu items are not placed in submenus
- // and the extension's icon is not shown.
+ // each item actually added.
void AppendExtensionItems(const MenuItem::ExtensionKey& extension_key,
const base::string16& selection_text,
- int* index,
- bool is_action_menu);
+ int* index);
void Clear();
@@ -83,8 +80,7 @@
bool can_cross_incognito,
const base::string16& selection_text,
ui::SimpleMenuModel* menu_model,
- int* index,
- bool is_action_menu_top_level);
+ int* index);
// Attempts to get an MenuItem given the id of a context menu item.
extensions::MenuItem* GetExtensionMenuItem(int id) const;

Powered by Google App Engine
This is Rietveld 408576698