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