| OLD | NEW |
| 1 <div id="pageData-name" class="pageData">Page Actions</div> | 1 <div id="pageData-name" class="pageData">Page Actions</div> |
| 2 | 2 |
| 3 <!-- BEGIN AUTHORED CONTENT --> | 3 <!-- BEGIN AUTHORED CONTENT --> |
| 4 <p> | 4 <p> |
| 5 Use page actions to put icons inside the address bar. | 5 Use page actions to put icons inside the address bar. |
| 6 Page actions represent actions | 6 Page actions represent actions |
| 7 that can be taken on the current page, | 7 that can be taken on the current page, |
| 8 but that aren't applicable to all pages. | 8 but that aren't applicable to all pages. |
| 9 Some examples: | 9 Some examples: |
| 10 </p> | 10 </p> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 <p> | 39 <p> |
| 40 Register your page action in the | 40 Register your page action in the |
| 41 <a href="manifest.html">extension manifest</a> | 41 <a href="manifest.html">extension manifest</a> |
| 42 like this: | 42 like this: |
| 43 </p> | 43 </p> |
| 44 | 44 |
| 45 <pre>{ | 45 <pre>{ |
| 46 "name": "My extension", | 46 "name": "My extension", |
| 47 ... | 47 ... |
| 48 <b>"page_action": { | 48 <b>"page_action": { |
| 49 "default_icon": "icons/foo.png", <em>// <b>required</b></em> | 49 "default_icon": "icons/foo.png", <em>// optional</em> |
| 50 "default_title": "Do action", <em>// optional; shown in tooltip</em> | 50 "default_title": "Do action", <em>// optional; shown in tooltip</em> |
| 51 "default_popup": "popup.html" <em>// optional</em> | 51 "default_popup": "popup.html" <em>// optional</em> |
| 52 }</b>, | 52 }</b>, |
| 53 ... | 53 ... |
| 54 }</pre> | 54 }</pre> |
| 55 | 55 |
| 56 <h2 id="ui">Parts of the UI</h2> | 56 <h2 id="ui">Parts of the UI</h2> |
| 57 | 57 |
| 58 <p> | 58 <p> |
| 59 Like browser actions, | 59 Like browser actions, |
| 60 page actions have an icon and | 60 page actions can have an icon, |
| 61 can also have a tooltip and popup; | 61 a tooltip, and popup; |
| 62 they can't have badges, however. | 62 they can't have badges, however. |
| 63 In addition, page actions can appear and disappear. | 63 In addition, page actions can appear and disappear. |
| 64 You can find information about icons, tooltips, and popups | 64 You can find information about icons, tooltips, and popups |
| 65 by reading about the | 65 by reading about the |
| 66 <a href="browserAction.html#ui">browser action UI</a>. | 66 <a href="browserAction.html#ui">browser action UI</a>. |
| 67 </p> | 67 </p> |
| 68 | 68 |
| 69 <p> | 69 <p> |
| 70 You make a page action appear and disappear using the | 70 You make a page action appear and disappear using the |
| 71 <a href="#method-show">show()</a> and | 71 <a href="#method-show">show()</a> and |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 <p> | 114 <p> |
| 115 You can find simple examples of using page actions in the | 115 You can find simple examples of using page actions in the |
| 116 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/pageAction/">examples/api/pageAction</a> | 116 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/pageAction/">examples/api/pageAction</a> |
| 117 directory. | 117 directory. |
| 118 For other examples and for help in viewing the source code, see | 118 For other examples and for help in viewing the source code, see |
| 119 <a href="samples.html">Samples</a>. | 119 <a href="samples.html">Samples</a>. |
| 120 </p> | 120 </p> |
| 121 | 121 |
| 122 <!-- END AUTHORED CONTENT --> | 122 <!-- END AUTHORED CONTENT --> |
| OLD | NEW |