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

Unified Diff: chrome/browser/extensions/menu_manager.h

Issue 186213003: <webview>: Context menu API implementation CL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and address comments. Created 6 years, 10 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/extensions/menu_manager.h
diff --git a/chrome/browser/extensions/menu_manager.h b/chrome/browser/extensions/menu_manager.h
index ea6cecf90de2aec43d6ac8c8f05304b7d76a279c..66a70635ede11b8e73745a2bc592163cc6024b2f 100644
--- a/chrome/browser/extensions/menu_manager.h
+++ b/chrome/browser/extensions/menu_manager.h
@@ -60,6 +60,7 @@ class MenuItem {
// Only one of uid or string_uid will be defined.
int uid;
std::string string_uid;
+ int webview_instance_id;
};
// For context menus, these are the contexts where an item can appear.
@@ -290,6 +291,10 @@ class MenuManager : public content::NotificationObserver,
// Removes all items for the given extension id.
void RemoveAllContextItems(const std::string& extension_id);
+ // Remove all items that belong to a <webview> guest within an extension.
+ void RemoveAllWebviewContextItems(const std::string& extension_id,
+ int webview_instance_id);
+
// Returns the item with the given |id| or NULL.
MenuItem* GetItemById(const MenuItem::Id& id) const;

Powered by Google App Engine
This is Rietveld 408576698