| OLD | NEW |
| 1 <img src="{{static}}/images/bookmarks.png" | 1 <img src="{{static}}/images/bookmarks.png" |
| 2 width="486" height="211" alt="Clicking the star adds a bookmark" /> | 2 width="486" height="211" alt="Clicking the star adds a bookmark" /> |
| 3 | 3 |
| 4 <h2 id="manifest">Manifest</h2> | 4 <h2 id="manifest">Manifest</h2> |
| 5 <p>You must declare the "bookmarks" permission | 5 <p>You must declare the "bookmarks" permission |
| 6 in the <a href="manifest.html">extension manifest</a> | 6 in the <a href="manifest">extension manifest</a> |
| 7 to use the bookmarks API. | 7 to use the bookmarks API. |
| 8 For example:</p> | 8 For example:</p> |
| 9 <pre data-filename="manifest.json"> | 9 <pre data-filename="manifest.json"> |
| 10 { | 10 { |
| 11 "name": "My extension", | 11 "name": "My extension", |
| 12 ... | 12 ... |
| 13 <b>"permissions": [ | 13 <b>"permissions": [ |
| 14 "bookmarks" | 14 "bookmarks" |
| 15 ]</b>, | 15 ]</b>, |
| 16 ... | 16 ... |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 <pre> | 73 <pre> |
| 74 chrome.bookmarks.create({'parentId': extensionsFolderId, | 74 chrome.bookmarks.create({'parentId': extensionsFolderId, |
| 75 'title': 'Extensions doc', | 75 'title': 'Extensions doc', |
| 76 'url': 'http://code.google.com/chrome/extensions'}); | 76 'url': 'http://code.google.com/chrome/extensions'}); |
| 77 </pre> | 77 </pre> |
| 78 | 78 |
| 79 <p> | 79 <p> |
| 80 For an example of using this API, see the | 80 For an example of using this API, see the |
| 81 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/bookmarks/basic/">basic bookmarks sample</a>. | 81 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/bookmarks/basic/">basic bookmarks sample</a>. |
| 82 For other examples and for help in viewing the source code, see | 82 For other examples and for help in viewing the source code, see |
| 83 <a href="samples.html">Samples</a>. | 83 <a href="samples">Samples</a>. |
| 84 </p> | 84 </p> |
| OLD | NEW |