Chromium Code Reviews| Index: chrome/common/extensions/docs/server2/templates/intros/pageAction.html |
| diff --git a/chrome/common/extensions/docs/server2/templates/intros/pageAction.html b/chrome/common/extensions/docs/server2/templates/intros/pageAction.html |
| index 86930f1715fe78be0d05c662fc3ff0559d97d957..e284caafa66d08af5a308d23fc265606086f99bf 100644 |
| --- a/chrome/common/extensions/docs/server2/templates/intros/pageAction.html |
| +++ b/chrome/common/extensions/docs/server2/templates/intros/pageAction.html |
| @@ -43,9 +43,29 @@ like this: |
| "name": "My extension", |
| ... |
| <b>"page_action": { |
| - "default_icon": "icons/foo.png", <em>// optional</em> |
| - "default_title": "Do action", <em>// optional; shown in tooltip</em> |
| - "default_popup": "popup.html" <em>// optional</em> |
| + "default_icon": { <em>// optional</em> |
| + "19": "images/icon19.png", <em>// optional</em> |
| + "38": "images/icon38.png" <em>// optional</em> |
| + }, |
| + "default_title": "Google Mail", <em>// optional; shown in tooltip</em> |
| + "default_popup": "popup.html" <em>// optional</em> |
| + }</b>, |
| + ... |
| +}</pre> |
| + |
| +<p> |
| +If you don't care about icon appearance when screens's device-independent |
|
Jeffrey Yasskin
2012/09/17 20:18:39
Ditto from browserAction.html.
tbarzic
2012/09/17 22:06:10
Done.
|
| +pixel (dip) size is different than its physical pixel size, you can register |
| +the default icon like this: |
| +</p> |
| + |
| +<pre>{ |
| + "name": "My extension", |
| + ... |
| + <b>"page_action": { |
| + ... |
| + "default_icon": "images/icon19.png" <em>// optional</em> |
| + <em>// equal to "default_icon": { "19": "images/icon19.png" }</em> |
| }</b>, |
| ... |
| }</pre> |
| @@ -105,4 +125,4 @@ You can find simple examples of using page actions in the |
| directory. |
| For other examples and for help in viewing the source code, see |
| <a href="samples.html">Samples</a>. |
| -</p> |
| +</p> |