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

Unified Diff: chrome/common/extensions/docs/server2/templates/intros/bookmarks.html

Issue 10832042: Extensions Docs Server: Doc conversion script (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: everything but svn stuff Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/templates/intros/bookmarks.html
diff --git a/chrome/common/extensions/docs/server2/templates/intros/bookmarks.html b/chrome/common/extensions/docs/server2/templates/intros/bookmarks.html
index 10aede81371c7fb4a640160de7f4644c90af0928..d5f2af0994480a9e739aa00f9b32de3bf89fc53f 100644
--- a/chrome/common/extensions/docs/server2/templates/intros/bookmarks.html
+++ b/chrome/common/extensions/docs/server2/templates/intros/bookmarks.html
@@ -1,12 +1,13 @@
-<!-- BEGIN AUTHORED CONTENT -->
<p id="classSummary">
Use the <code>chrome.bookmarks</code> module to create, organize,
and otherwise manipulate bookmarks.
Also see <a href="override.html">Override Pages</a>,
which you can use to create a custom Bookmark Manager page.
</p>
+
<img src="{{static}}/images/bookmarks.png"
width="210" height="147" alt="Clicking the star adds a bookmark" />
+
<h2 id="manifest">Manifest</h2>
<p>You must declare the "bookmarks" permission
in the <a href="manifest.html">extension manifest</a>
@@ -20,7 +21,9 @@ For example:</p>
]</b>,
...
}</pre>
+
<h2 id="description">Objects and properties</h2>
+
<p>
Bookmarks are organized in a tree,
where each node in the tree
@@ -30,6 +33,7 @@ Each node in the tree
is represented by a
<a href="#type-bookmarks.BookmarkTreeNode"><code>BookmarkTreeNode</code></a> object.
</p>
+
<p>
<code>BookmarkTreeNode</code> properties
are used throughout the <code>chrome.bookmarks</code> API.
@@ -41,10 +45,13 @@ and, optionally, the node's
See <a href="#type-bookmarks.BookmarkTreeNode"><code>BookmarkTreeNode</code></a>
for information about the properties a node can have.
</p>
+
<p class="note"><b>Note:</b> You cannot use this API to add or remove entries
in the root folder. You also cannot rename, move, or remove the special
"Bookmarks Bar" and "Other Bookmarks" folders.</p>
+
<h2 id="overview-examples">Examples</h2>
+
<p>
The following code creates a folder with the title "Extension bookmarks".
The first argument to <code>create()</code> specifies properties
@@ -52,6 +59,7 @@ for the new folder.
The second argument defines a function
to be executed after the folder is created.
</p>
+
<pre>
chrome.bookmarks.create({'parentId': bookmarkBar.id,
'title': 'Extension bookmarks'},
@@ -59,21 +67,23 @@ chrome.bookmarks.create({'parentId': bookmarkBar.id,
console.log("added folder: " + newFolder.title);
});
</pre>
+
<p>
The next snippet creates a bookmark pointing to
the developer documentation for extensions.
Since nothing bad will happen if creating the bookmark fails,
this code doesn't bother to define a callback function.
</p>
+
<pre>
chrome.bookmarks.create({'parentId': extensionsFolderId,
'title': 'Extensions doc',
'url': 'http://code.google.com/chrome/extensions'});
</pre>
+
<p>
For an example of using this API, see the
<a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/bookmarks/basic/">basic bookmarks sample</a>.
For other examples and for help in viewing the source code, see
<a href="samples.html">Samples</a>.
-</p>
-<!-- END AUTHORED CONTENT -->
+</p>

Powered by Google App Engine
This is Rietveld 408576698