| OLD | NEW |
| 1 <p id="classSummary"> | |
| 2 Use the <code>chrome.bookmarks</code> module to create, organize, | |
| 3 and otherwise manipulate bookmarks. | |
| 4 Also see <a href="override.html">Override Pages</a>, | |
| 5 which you can use to create a custom Bookmark Manager page. | |
| 6 </p> | |
| 7 | |
| 8 <img src="{{static}}/images/bookmarks.png" | 1 <img src="{{static}}/images/bookmarks.png" |
| 9 width="210" height="147" alt="Clicking the star adds a bookmark" /> | 2 width="210" height="147" alt="Clicking the star adds a bookmark" /> |
| 10 | 3 |
| 11 <h2 id="manifest">Manifest</h2> | 4 <h2 id="manifest">Manifest</h2> |
| 12 <p>You must declare the "bookmarks" permission | 5 <p>You must declare the "bookmarks" permission |
| 13 in the <a href="manifest.html">extension manifest</a> | 6 in the <a href="manifest.html">extension manifest</a> |
| 14 to use the bookmarks API. | 7 to use the bookmarks API. |
| 15 For example:</p> | 8 For example:</p> |
| 16 <pre>{ | 9 <pre>{ |
| 17 "name": "My extension", | 10 "name": "My extension", |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 chrome.bookmarks.create({'parentId': extensionsFolderId, | 72 chrome.bookmarks.create({'parentId': extensionsFolderId, |
| 80 'title': 'Extensions doc', | 73 'title': 'Extensions doc', |
| 81 'url': 'http://code.google.com/chrome/extensions'}); | 74 'url': 'http://code.google.com/chrome/extensions'}); |
| 82 </pre> | 75 </pre> |
| 83 | 76 |
| 84 <p> | 77 <p> |
| 85 For an example of using this API, see the | 78 For an example of using this API, see the |
| 86 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/bookmarks/basic/">basic bookmarks sample</a>. | 79 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/bookmarks/basic/">basic bookmarks sample</a>. |
| 87 For other examples and for help in viewing the source code, see | 80 For other examples and for help in viewing the source code, see |
| 88 <a href="samples.html">Samples</a>. | 81 <a href="samples.html">Samples</a>. |
| 89 </p> | 82 </p> |
| OLD | NEW |