OLD | NEW |
1 <p> | 1 <p> |
2 Some examples: | 2 Some examples: |
3 </p> | 3 </p> |
4 <ul> | 4 <ul> |
5 <li> Subscribe to this page's RSS feed </li> | 5 <li> Subscribe to this page's RSS feed </li> |
6 <li> Make a slideshow out of this page's photos </li> | 6 <li> Make a slideshow out of this page's photos </li> |
7 </ul> | 7 </ul> |
8 | 8 |
9 <p> | 9 <p> |
10 The RSS icon in the following screenshot | 10 The RSS icon in the following screenshot |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 can lose detail or make it look fuzzy. The old syntax for registering the | 50 can lose detail or make it look fuzzy. The old syntax for registering the |
51 default icon is still supported: | 51 default icon is still supported: |
52 </p> | 52 </p> |
53 | 53 |
54 <pre data-filename="manifest.json"> | 54 <pre data-filename="manifest.json"> |
55 { | 55 { |
56 "name": "My extension", | 56 "name": "My extension", |
57 ... | 57 ... |
58 <b>"page_action": { | 58 <b>"page_action": { |
59 ... | 59 ... |
60 "default_icon": "images/icon19.png" <em>// optional</em> | 60 "default_icon": "images/icon38.png" <em>// optional</em> |
61 <em>// equivalent to "default_icon": { "19": "images/icon19.png" }</em> | 61 <em>// equivalent to "default_icon": { "38": "images/icon38.png" }</em> |
62 }</b>, | 62 }</b>, |
63 ... | 63 ... |
64 }</pre> | 64 }</pre> |
65 | 65 |
66 <h2 id="ui">Parts of the UI</h2> | 66 <h2 id="ui">Parts of the UI</h2> |
67 | 67 |
68 <p> | 68 <p> |
69 Like browser actions, | 69 Like browser actions, |
70 page actions can have an icon, | 70 page actions can have an icon, |
71 a tooltip, and popup; | 71 a tooltip, and popup; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 <h2 id="examples"> Examples </h2> | 113 <h2 id="examples"> Examples </h2> |
114 | 114 |
115 <p> | 115 <p> |
116 You can find simple examples of using page actions in the | 116 You can find simple examples of using page actions in the |
117 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/pageAction/">examples/api/pageAction</a> | 117 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/pageAction/">examples/api/pageAction</a> |
118 directory. | 118 directory. |
119 For other examples and for help in viewing the source code, see | 119 For other examples and for help in viewing the source code, see |
120 <a href="samples">Samples</a>. | 120 <a href="samples">Samples</a>. |
121 </p> | 121 </p> |
OLD | NEW |