1 <h2 id=
"usage">Usage
</h2>
4 Context menu items can appear in any document
5 (or frame within a document),
6 even those with file:// or chrome:// URLs.
7 To control which documents your items can appear in,
8 specify the documentUrlPatterns field
9 when you call the create() or update() method.
13 You can create as many context menu items
14 as you need, but if more than one
15 from your extension is visible at once,
16 Google Chrome automatically collapses them
17 into a single parent menu.
20 <h2 id=
"manifest">Manifest
</h2>
22 You must declare the
"contextMenus" permission
23 in your {{platform}}'s manifest to use the API.
25 Also, you should specify a
16x16-pixel icon
26 for display next to your menu item.
31 <pre data-filename=
"manifest.json">
33 "name":
"My extension",
40 <b>"16":
"icon-bitty.png",
</b>
41 "48":
"icon-small.png",
42 "128":
"icon-large.png"
49 <h2 id=
"examples">Examples
</h2>
52 You can find samples of this API on the
53 <a href=
"samples.html#contextMenus">sample page
</a>.