| Index: chrome/common/extensions/docs/server2/templates/intros/context_menus.html
|
| diff --git a/chrome/common/extensions/docs/server2/templates/intros/contextMenus.html b/chrome/common/extensions/docs/server2/templates/intros/context_menus.html
|
| similarity index 91%
|
| copy from chrome/common/extensions/docs/server2/templates/intros/contextMenus.html
|
| copy to chrome/common/extensions/docs/server2/templates/intros/context_menus.html
|
| index aa50b0116ff9c12ac1669c06e02edad3a9da45f2..0ec9c7292373da0b48f09f0484c6c3146841c8cd 100644
|
| --- a/chrome/common/extensions/docs/server2/templates/intros/contextMenus.html
|
| +++ b/chrome/common/extensions/docs/server2/templates/intros/context_menus.html
|
| @@ -1,13 +1,17 @@
|
| -<!-- BEGIN AUTHORED CONTENT -->
|
| +
|
| +
|
| +
|
| <p>
|
| The context menus module allows you
|
| to add items to Google 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
|
| @@ -15,6 +19,7 @@ from your extension is visible at once,
|
| Google Chrome automatically collapses them
|
| into a single parent menu.
|
| </p>
|
| +
|
| <p>
|
| Context menu items can appear in any document
|
| (or frame within a document),
|
| @@ -23,12 +28,14 @@ To control which documents your items can appear in,
|
| specify the documentUrlPatterns field
|
| when you call the create() or update() method.
|
| </p>
|
| +
|
| <p class="note">
|
| <strong>Version note:</strong>
|
| -Before Chrome 14, <!-- PENDING(asargent): fix version # -->
|
| +Before Chrome 14,
|
| your items could appear only in documents with http://
|
| or https:// URLs.
|
| </p>
|
| +
|
| <h2 id="manifest">Manifest</h2>
|
| <p>You must declare the "contextMenus" permission
|
| in your extension's manifest to use the API.
|
| @@ -36,6 +43,7 @@ Also, you should specify a 16x16-pixel icon
|
| for display next to your menu item.
|
| For example:
|
| </p>
|
| +
|
| <pre>{
|
| "name": "My extension",
|
| ...
|
| @@ -49,8 +57,11 @@ For example:
|
| },
|
| ...
|
| }</pre>
|
| +
|
| <h2 id="examples">Examples</h2>
|
| +
|
| <p>
|
| You can find samples of this API on the
|
| <a href="samples.html#contextMenus">sample page</a>.
|
| -<!-- END AUTHORED CONTENT -->
|
| +
|
| +
|
|
|