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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!-- BEGIN AUTHORED CONTENT -->
2 <p>
3 The context menus module allows you
4 to add items to Chrome's context menu.
5 </p>
6
7 <p>
8 You can choose what types of objects
9 your context menu additions apply to,
10 such as images, hyperlinks, and pages.
11 </P>
12
13 <p>
14 You can create as many context menu items
15 as you need, but if more than one
16 from your extension is visible at once,
17 Google Chrome automatically collapses them
18 into a single parent menu.
19 </p>
20
21 <h2 id="manifest">Manifest</h2>
22 <p>You must declare the "contextMenus" permission
23 in your extension's manifest to use the API.
24 Also, you should specify a 16x16-pixel icon
25 for display next to your menu item.
26 For example:
27 </p>
28
29 <pre>{
30 "name": "My extension",
31 ...
32 "permissions": [
33 <b>"contextMenus"</b>
34 ],
35 "icons": {
36 <b>"16": "icon-bitty.png",</b>
37 "48": "icon-small.png",
38 "128": "icon-large.png"
39 },
40 ...
41 }</pre>
42
43 <!-- END AUTHORED CONTENT -->
OLDNEW
« 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