Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: chrome/common/extensions/docs/templates/intros/bookmarks.html

Issue 12996003: Dynamically generate a heading for Extension Docs API pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments - Patch currently being broken up Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698