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

Unified Diff: chrome/common/extensions/docs/server2/test_data/dict_generator/expected_bookmarks.json

Issue 10577022: Extensions Docs Server: HandlebarDictGenerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/test_data/dict_generator/expected_bookmarks.json
diff --git a/chrome/common/extensions/docs/server2/test_data/dict_generator/expected_bookmarks.json b/chrome/common/extensions/docs/server2/test_data/dict_generator/expected_bookmarks.json
new file mode 100644
index 0000000000000000000000000000000000000000..a60d094d2529f2ff0cf7ce8ca925a7970e1fe56e
--- /dev/null
+++ b/chrome/common/extensions/docs/server2/test_data/dict_generator/expected_bookmarks.json
@@ -0,0 +1,376 @@
+{
+ "functions": [
+ {
+ "callback": {
+ "name": "callback",
+ "parameters": [
+ {
+ "type": "ARRAY",
+ "properties": null,
+ "optional": false,
+ "name": "results",
+ "item_type": {
+ "type": "REF",
+ "name": "resultsElement",
+ "properties": null
+ }
+ }
+ ]
+ },
+ "name": "search",
+ "parameters": [
+ {
+ "type": "STRING",
+ "optional": false,
+ "name": "query",
+ "properties": null
+ }
+ ],
+ "description": "Searches for BookmarkTreeNodes matching the given query."
+ },
+ {
+ "callback": {
+ "name": "callback",
+ "parameters": [
+ {
+ "type": "ARRAY",
+ "properties": null,
+ "optional": false,
+ "name": "results",
+ "item_type": {
+ "type": "REF",
+ "name": "resultsElement",
+ "properties": null
+ }
+ }
+ ]
+ },
+ "name": "getTree",
+ "description": "Retrieves the entire Bookmarks hierarchy."
+ },
+ {
+ "callback": {
+ "name": "callback",
+ "parameters": [
+ {
+ "type": "ARRAY",
+ "properties": null,
+ "optional": false,
+ "name": "results",
+ "item_type": {
+ "type": "REF",
+ "name": "resultsElement",
+ "properties": null
+ }
+ }
+ ]
+ },
+ "name": "getRecent",
+ "parameters": [
+ {
+ "type": "INTEGER",
+ "properties": null,
+ "optional": false,
+ "name": "numberOfItems",
+ "description": "The maximum number of items to return."
+ }
+ ],
+ "description": "Retrieves the recently added bookmarks."
+ },
+ {
+ "callback": {
+ "name": "callback",
+ "parameters": [
+ {
+ "type": "REF",
+ "ref_type": "BookmarkTreeNode",
+ "optional": false,
+ "name": "result",
+ "properties": null
+ }
+ ]
+ },
+ "name": "create",
+ "parameters": [
+ {
+ "type": "OBJECT",
+ "optional": false,
+ "name": "bookmark",
+ "properties": [
+ {
+ "type": "INTEGER",
+ "optional": true,
+ "name": "index",
+ "properties": null
+ },
+ {
+ "type": "STRING",
+ "optional": true,
+ "name": "title",
+ "properties": null
+ },
+ {
+ "type": "STRING",
+ "optional": true,
+ "name": "url",
+ "properties": null
+ },
+ {
+ "type": "STRING",
+ "properties": null,
+ "optional": true,
+ "name": "parentId",
+ "description": "Defaults to the Other Bookmarks folder."
+ }
+ ]
+ }
+ ],
+ "description": "Creates a bookmark or folder under the specified parentId. If url is NULL or missing, it will be a folder."
+ },
+ {
+ "callback": {
+ "name": "callback",
+ "parameters": [
+ {
+ "type": "REF",
+ "ref_type": "BookmarkTreeNode",
+ "optional": false,
+ "name": "result",
+ "properties": null
+ }
+ ]
+ },
+ "name": "move",
+ "parameters": [
+ {
+ "type": "STRING",
+ "optional": false,
+ "name": "id",
+ "properties": null
+ },
+ {
+ "type": "OBJECT",
+ "optional": false,
+ "name": "destination",
+ "properties": [
+ {
+ "type": "INTEGER",
+ "optional": true,
+ "name": "index",
+ "properties": null
+ },
+ {
+ "type": "STRING",
+ "optional": false,
+ "name": "parentId",
+ "properties": null
+ }
+ ]
+ }
+ ],
+ "description": "Moves the specified BookmarkTreeNode to the provided location."
+ },
+ {
+ "callback": {
+ "name": "callback",
+ "parameters": [
+ {
+ "type": "REF",
+ "ref_type": "BookmarkTreeNode",
+ "optional": false,
+ "name": "result",
+ "properties": null
+ }
+ ]
+ },
+ "name": "update",
+ "parameters": [
+ {
+ "type": "STRING",
+ "optional": false,
+ "name": "id",
+ "properties": null
+ },
+ {
+ "type": "OBJECT",
+ "optional": false,
+ "name": "changes",
+ "properties": [
+ {
+ "type": "STRING",
+ "optional": true,
+ "name": "url",
+ "properties": null
+ },
+ {
+ "type": "STRING",
+ "optional": true,
+ "name": "title",
+ "properties": null
+ }
+ ]
+ }
+ ],
+ "description": "Updates the properties of a bookmark or folder. Specify only the properties that you want to change; unspecified properties will be left unchanged. <b>Note:</b> Currently, only 'title' and 'url' are supported."
+ },
+ {
+ "callback": {
+ "name": "callback"
+ },
+ "name": "remove",
+ "parameters": [
+ {
+ "type": "STRING",
+ "optional": false,
+ "name": "id",
+ "properties": null
+ }
+ ],
+ "description": "Removes a bookmark or an empty bookmark folder."
+ },
+ {
+ "callback": {
+ "name": "callback",
+ "parameters": [
+ {
+ "type": "ARRAY",
+ "properties": null,
+ "optional": false,
+ "name": "results",
+ "item_type": {
+ "type": "REF",
+ "name": "resultsElement",
+ "properties": null
+ }
+ }
+ ]
+ },
+ "name": "getChildren",
+ "parameters": [
+ {
+ "type": "STRING",
+ "optional": false,
+ "name": "id",
+ "properties": null
+ }
+ ],
+ "description": "Retrieves the children of the specified BookmarkTreeNode id."
+ },
+ {
+ "callback": {
+ "name": "callback"
+ },
+ "name": "export",
+ "description": "Exports bookmarks to a chrome html bookmark file"
+ },
+ {
+ "callback": {
+ "name": "callback"
+ },
+ "name": "removeTree",
+ "parameters": [
+ {
+ "type": "STRING",
+ "optional": false,
+ "name": "id",
+ "properties": null
+ }
+ ],
+ "description": "Recursively removes a bookmark folder."
+ },
+ {
+ "callback": {
+ "name": "callback",
+ "parameters": [
+ {
+ "type": "ARRAY",
+ "properties": null,
+ "optional": false,
+ "name": "results",
+ "item_type": {
+ "type": "REF",
+ "name": "resultsElement",
+ "properties": null
+ }
+ }
+ ]
+ },
+ "name": "getSubTree",
+ "parameters": [
+ {
+ "type": "STRING",
+ "properties": null,
+ "optional": false,
+ "name": "id",
+ "description": "The ID of the root of the subtree to retrieve."
+ }
+ ],
+ "description": "Retrieves part of the Bookmarks hierarchy, starting at the specified node."
+ }
+ ],
+ "name": "bookmarks",
+ "types": [
+ {
+ "properties": [
+ {
+ "type": "INTEGER",
+ "properties": null,
+ "optional": true,
+ "name": "index",
+ "description": "The 0-based position of this node within its parent folder."
+ },
+ {
+ "type": "DOUBLE",
+ "properties": null,
+ "optional": true,
+ "name": "dateAdded",
+ "description": "When this node was created, in milliseconds since the epoch (<code>new Date(dateAdded)</code>)."
+ },
+ {
+ "type": "STRING",
+ "properties": null,
+ "optional": false,
+ "name": "title",
+ "description": "The text displayed for the node."
+ },
+ {
+ "type": "STRING",
+ "properties": null,
+ "optional": true,
+ "name": "url",
+ "description": "The URL navigated to when a user clicks the bookmark. Omitted for folders."
+ },
+ {
+ "type": "DOUBLE",
+ "properties": null,
+ "optional": true,
+ "name": "dateGroupModified",
+ "description": "When the contents of this folder last changed, in milliseconds since the epoch."
+ },
+ {
+ "type": "STRING",
+ "properties": null,
+ "optional": true,
+ "name": "parentId",
+ "description": "The <code>id</code> of the parent folder. Omitted for the root node."
+ },
+ {
+ "name": "children",
+ "optional": true,
+ "item_type": {
+ "type": "REF",
+ "name": "childrenElement",
+ "properties": null
+ },
+ "type": "ARRAY",
+ "properties": null,
+ "description": "An ordered list of children of this node."
+ }
+ ],
+ "type": "OBJECT",
+ "name": "BookmarkTreeNode",
+ "description": "A node (either a bookmark or a folder) in the bookmark tree. Child nodes are ordered within their parent folder."
+ }
+ ],
+ "properties": null
+}

Powered by Google App Engine
This is Rietveld 408576698