| 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 25 matching lines...) Expand all Loading... |
| 36 <a href="manifest.html">extension manifest</a> | 36 <a href="manifest.html">extension manifest</a> |
| 37 like this: | 37 like this: |
| 38 </p> | 38 </p> |
| 39 | 39 |
| 40 <pre>{ | 40 <pre>{ |
| 41 "name": "My extension", | 41 "name": "My extension", |
| 42 ... | 42 ... |
| 43 <b>"page_action": { | 43 <b>"page_action": { |
| 44 "default_icon": "icons/foo.png", <em>// <b>required</b></em> | 44 "default_icon": "icons/foo.png", <em>// <b>required</b></em> |
| 45 "default_title": "Do action", <em>// optional; shown in tooltip</em> | 45 "default_title": "Do action", <em>// optional; shown in tooltip</em> |
| 46 "popup": "popup.html" <em>// optional</em> | 46 "default_popup": "popup.html" <em>// optional</em> |
| 47 }</b>, | 47 }</b>, |
| 48 ... | 48 ... |
| 49 }</pre> | 49 }</pre> |
| 50 | 50 |
| 51 <h2 id="ui">Parts of the UI</h2> | 51 <h2 id="ui">Parts of the UI</h2> |
| 52 | 52 |
| 53 <p> | 53 <p> |
| 54 Like browser actions, | 54 Like browser actions, |
| 55 page actions have an icon and | 55 page actions have an icon and |
| 56 can also have a tooltip and popup; | 56 can also have a tooltip and popup; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 <p> | 109 <p> |
| 110 You can find simple examples of using page actions in the | 110 You can find simple examples of using page actions in the |
| 111 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/pageAction/">examples/api/pageAction</a> | 111 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/pageAction/">examples/api/pageAction</a> |
| 112 directory. | 112 directory. |
| 113 For other examples and for help in viewing the source code, see | 113 For other examples and for help in viewing the source code, see |
| 114 <a href="samples.html">Samples</a>. | 114 <a href="samples.html">Samples</a>. |
| 115 </p> | 115 </p> |
| 116 | 116 |
| 117 <!-- END AUTHORED CONTENT --> | 117 <!-- END AUTHORED CONTENT --> |
| OLD | NEW |