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

Unified Diff: chrome/browser/extensions/api/context_menu/context_menu_api.cc

Issue 10918103: Give platform apps control over launcher right-click context menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and fix conflicts Created 8 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/extensions/context_menu_matcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/context_menu/context_menu_api.cc
diff --git a/chrome/browser/extensions/api/context_menu/context_menu_api.cc b/chrome/browser/extensions/api/context_menu/context_menu_api.cc
index 102d5ee4a359cc9b55d99a1de8e2caf6bd190bb3..f0908858322dfcd28b2b50860b4e408e61ffb782 100644
--- a/chrome/browser/extensions/api/context_menu/context_menu_api.cc
+++ b/chrome/browser/extensions/api/context_menu/context_menu_api.cc
@@ -75,6 +75,9 @@ extensions::MenuItem::ContextList GetContexts(
case PropertyWithEnumT::CONTEXTS_ELEMENT_FRAME:
contexts.Add(extensions::MenuItem::FRAME);
break;
+ case PropertyWithEnumT::CONTEXTS_ELEMENT_LAUNCHER:
+ contexts.Add(extensions::MenuItem::LAUNCHER);
+ break;
case PropertyWithEnumT::CONTEXTS_ELEMENT_NONE:
NOTREACHED();
}
« no previous file with comments | « no previous file | chrome/browser/extensions/context_menu_matcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698