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

Unified Diff: chrome/common/extensions/docs/static/contextMenus.html

Issue 2840038: Move context menu module out of experimental. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: kathy changes 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/common/extensions/docs/static/contextMenus.html
diff --git a/chrome/common/extensions/docs/static/contextMenus.html b/chrome/common/extensions/docs/static/contextMenus.html
new file mode 100644
index 0000000000000000000000000000000000000000..d7ad781422ba1907a4039de704420cb99f01505f
--- /dev/null
+++ b/chrome/common/extensions/docs/static/contextMenus.html
@@ -0,0 +1,43 @@
+<!-- BEGIN AUTHORED CONTENT -->
+<p>
+The context menus module allows you
+to add items to Chrome's context menu.
+</p>
+
+<p>
+You can choose what types of objects
+your context menu additions apply to,
+such as images, hyperlinks, and pages.
+</P>
+
+<p>
+You can create as many context menu items
+as you need, but if more than one
+from your extension is visible at once,
+Google Chrome automatically collapses them
+into a single parent menu.
+</p>
+
+<h2 id="manifest">Manifest</h2>
+<p>You must declare the "contextMenus" permission
+in your extension's manifest to use the API.
+Also, you should specify a 16x16-pixel icon
+for display next to your menu item.
+For example:
+</p>
+
+<pre>{
+ "name": "My extension",
+ ...
+ "permissions": [
+ <b>"contextMenus"</b>
+ ],
+ "icons": {
+ <b>"16": "icon-bitty.png",</b>
+ "48": "icon-small.png",
+ "128": "icon-large.png"
+ },
+ ...
+}</pre>
+
+<!-- END AUTHORED CONTENT -->
« no previous file with comments | « chrome/common/extensions/docs/samples.html ('k') | chrome/common/extensions/docs/static/experimental.contextMenus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698