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

Side by Side Diff: chrome/common/extensions/docs/static/contextMenus.html

Issue 10826261: Extension Docs: Remove out dated version notes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <div id="pageData-name" class="pageData">Context Menus</div> 1 <div id="pageData-name" class="pageData">Context Menus</div>
2 2
3 <!-- BEGIN AUTHORED CONTENT --> 3 <!-- BEGIN AUTHORED CONTENT -->
4 <p> 4 <p>
5 The context menus module allows you 5 The context menus module allows you
6 to add items to Google Chrome's context menu. 6 to add items to Google Chrome's context menu.
7 </p> 7 </p>
8 8
9 <p> 9 <p>
10 You can choose what types of objects 10 You can choose what types of objects
(...skipping 11 matching lines...) Expand all
22 22
23 <p> 23 <p>
24 Context menu items can appear in any document 24 Context menu items can appear in any document
25 (or frame within a document), 25 (or frame within a document),
26 even those with file:// or chrome:// URLs. 26 even those with file:// or chrome:// URLs.
27 To control which documents your items can appear in, 27 To control which documents your items can appear in,
28 specify the documentUrlPatterns field 28 specify the documentUrlPatterns field
29 when you call the create() or update() method. 29 when you call the create() or update() method.
30 </p> 30 </p>
31 31
32 <p class="note">
33 <strong>Version note:</strong>
34 Before Chrome 14, <!-- PENDING(asargent): fix version # -->
35 your items could appear only in documents with http://
36 or https:// URLs.
37 </p>
38
39 <h2 id="manifest">Manifest</h2> 32 <h2 id="manifest">Manifest</h2>
40 <p>You must declare the "contextMenus" permission 33 <p>You must declare the "contextMenus" permission
41 in your extension's manifest to use the API. 34 in your extension's manifest to use the API.
42 Also, you should specify a 16x16-pixel icon 35 Also, you should specify a 16x16-pixel icon
43 for display next to your menu item. 36 for display next to your menu item.
44 For example: 37 For example:
45 </p> 38 </p>
46 39
47 <pre>{ 40 <pre>{
48 "name": "My extension", 41 "name": "My extension",
49 ... 42 ...
50 "permissions": [ 43 "permissions": [
51 <b>"contextMenus"</b> 44 <b>"contextMenus"</b>
52 ], 45 ],
53 "icons": { 46 "icons": {
54 <b>"16": "icon-bitty.png",</b> 47 <b>"16": "icon-bitty.png",</b>
55 "48": "icon-small.png", 48 "48": "icon-small.png",
56 "128": "icon-large.png" 49 "128": "icon-large.png"
57 }, 50 },
58 ... 51 ...
59 }</pre> 52 }</pre>
60 53
61 <h2 id="examples">Examples</h2> 54 <h2 id="examples">Examples</h2>
62 55
63 <p> 56 <p>
64 You can find samples of this API on the 57 You can find samples of this API on the
65 <a href="samples.html#contextMenus">sample page</a>. 58 <a href="samples.html#contextMenus">sample page</a>.
66 59
67 <!-- END AUTHORED CONTENT --> 60 <!-- END AUTHORED CONTENT -->
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698