| OLD | NEW |
| 1 <div id="pageData-title" class="pageData">Page Actions</div> | 1 <div id="pageData-title" 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 "default_icon": "icons/foo.png" <em>// optional</em> | 42 "default_icon": "icons/foo.png" <em>// optional</em> |
| 43 }</pre> | 43 }</pre> |
| 44 | 44 |
| 45 <p><b>Note:</b> Even if you don't include | 45 <p><b>Note:</b> Even if you don't include |
| 46 any of the values, | 46 any of the values, |
| 47 you must include an empty <b>page_action</b> entry | 47 you must include an empty <b>page_action</b> entry |
| 48 in your manifest so that the system | 48 in your manifest so that the system |
| 49 reserves a slot for your page action | 49 reserves a slot for your page action |
| 50 in the address bar.</p> | 50 in the address bar.</p> |
| 51 | 51 |
| 52 <p> |
| 53 Although the "default_icon" is optional, it's a good idea to provide one. |
| 54 When users install your extension, if you have set a default icon, it can |
| 55 be previewed to the user so they know what to look for when your page action |
| 56 is active for a given page.</p> |
| 57 |
| 52 <h2 id="ui">Parts of the UI</h2> | 58 <h2 id="ui">Parts of the UI</h2> |
| 53 | 59 |
| 54 <p> | 60 <p> |
| 55 Page actions have an icon and optional tooltip, | 61 Page actions have an icon and optional tooltip, |
| 56 just like browser actions do. | 62 just like browser actions do. |
| 57 In addition, page actions can appear and disappear. | 63 In addition, page actions can appear and disappear. |
| 58 For information about the common UI parts, | 64 For information about the common UI parts, |
| 59 read about the | 65 read about the |
| 60 <a href="browserAction.html#ui">browser action UI</a>. | 66 <a href="browserAction.html#ui">browser action UI</a>. |
| 61 </p> | 67 </p> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 in the location bar | 109 in the location bar |
| 104 are smaller than 19 pixels. | 110 are smaller than 19 pixels. |
| 105 If the edge pixels are used, | 111 If the edge pixels are used, |
| 106 they are usually only used | 112 they are usually only used |
| 107 for a faint shadow. | 113 for a faint shadow. |
| 108 <li><b>Don't</b> constantly animate your icon. | 114 <li><b>Don't</b> constantly animate your icon. |
| 109 That's just annoying. | 115 That's just annoying. |
| 110 </ul> | 116 </ul> |
| 111 | 117 |
| 112 <!-- END AUTHORED CONTENT --> | 118 <!-- END AUTHORED CONTENT --> |
| OLD | NEW |