1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 "namespace": "bookmarks",
8 "description": "Use the <code>chrome.bookmarks</code> API to create, organize, and otherwise manipulate bookmarks. Also see <a href='override'>Override Pages</a>, which you can use to create a custom Bookmark Manager page.",
10 "MAX_WRITE_OPERATIONS_PER_HOUR": {
12 "deprecated": "Bookmark write operations are no longer limited by Chrome.",
15 "MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE": {
17 "deprecated": "Bookmark write operations are no longer limited by Chrome.",
23 "id": "BookmarkTreeNodeUnmodifiable",
26 "description": "Indicates the reason why this node is unmodifiable. The <var>managed</var> value indicates that this node was configured by the system administrator or by the custodian of a supervised user. Omitted if the node can be modified by the user and the extension (default)."
29 "id": "BookmarkTreeNode",
31 "description": "A node (either a bookmark or a folder) in the bookmark tree. Child nodes are ordered within their parent folder.",
36 "description": "The unique identifier for the node. IDs are unique within the current profile, and they remain valid even after the browser is restarted."
42 "description": "The <code>id</code> of the parent folder. Omitted for the root node."
47 "description": "The 0-based position of this node within its parent folder."
52 "description": "The URL navigated to when a user clicks the bookmark. Omitted for folders."
56 "description": "The text displayed for the node."
61 "description": "When this node was created, in milliseconds since the epoch (<code>new Date(dateAdded)</code>)."
63 "dateGroupModified": {
66 "description": "When the contents of this folder last changed, in milliseconds since the epoch."
69 "$ref": "BookmarkTreeNodeUnmodifiable",
71 "description": "Indicates the reason why this node is unmodifiable. The <var>managed</var> value indicates that this node was configured by the system administrator or by the custodian of a supervised user. Omitted if the node can be modified by the user and the extension (default)."
76 "items": { "$ref": "BookmarkTreeNode" },
77 "description": "An ordered list of children of this node."
82 "id": "CreateDetails",
83 "description": "Object passed to the create() function.",
89 "serialized_type": "int64",
91 "description": "Defaults to the Other Bookmarks folder."
113 "description": "Retrieves the specified BookmarkTreeNode(s).",
116 "name": "idOrIdList",
117 "description": "A single string-valued id, or an array of string-valued ids",
121 "serialized_type": "int64"
127 "serialized_type": "int64"
140 "items": { "$ref": "BookmarkTreeNode" }
147 "name": "getChildren",
149 "description": "Retrieves the children of the specified BookmarkTreeNode id.",
153 "serialized_type": "int64",
163 "items": { "$ref": "BookmarkTreeNode"}
172 "description": "Retrieves the recently added bookmarks.",
177 "name": "numberOfItems",
178 "description": "The maximum number of items to return."
187 "items": { "$ref": "BookmarkTreeNode" }
196 "description": "Retrieves the entire Bookmarks hierarchy.",
205 "items": { "$ref": "BookmarkTreeNode" }
212 "name": "getSubTree",
214 "description": "Retrieves part of the Bookmarks hierarchy, starting at the specified node.",
218 "serialized_type": "int64",
220 "description": "The ID of the root of the subtree to retrieve."
229 "items": { "$ref": "BookmarkTreeNode" }
238 "description": "Searches for BookmarkTreeNodes matching the given query. Queries specified with an object produce BookmarkTreeNodes matching all specified properties.",
242 "description": "Either a string of words and quoted phrases that are matched against bookmark URLs and titles, or an object. If an object, the properties <code>query</code>, <code>url</code>, and <code>title</code> may be specified and bookmarks matching all specified properties will be produced.",
246 "description": "A string of words and quoted phrases that are matched against bookmark URLs and titles."
250 "description": "An object specifying properties and values to match when searching. Produces bookmarks matching all properties.",
255 "description": "A string of words and quoted phrases that are matched against bookmark URLs and titles."
260 "description": "The URL of the bookmark; matches verbatim. Note that folders have no URL."
265 "description": "The title of the bookmark; matches verbatim."
278 "items": { "$ref": "BookmarkTreeNode" }
287 "description": "Creates a bookmark or folder under the specified parentId. If url is NULL or missing, it will be a folder.",
290 "$ref": "CreateDetails",
300 "$ref": "BookmarkTreeNode"
309 "description": "Moves the specified BookmarkTreeNode to the provided location.",
313 "serialized_type": "int64",
318 "name": "destination",
338 "$ref": "BookmarkTreeNode"
347 "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.",
351 "serialized_type": "int64",
375 "$ref": "BookmarkTreeNode"
384 "description": "Removes a bookmark or an empty bookmark folder.",
388 "serialized_type": "int64",
400 "name": "removeTree",
402 "description": "Recursively removes a bookmark folder.",
406 "serialized_type": "int64",
420 "description": "Imports bookmarks from a chrome html bookmark file",
434 "description": "Exports bookmarks to a chrome html bookmark file",
450 "description": "Fired when a bookmark or folder is created.",
457 "$ref": "BookmarkTreeNode",
465 "description": "Fired when a bookmark or folder is removed. When a folder is removed recursively, a single notification is fired for the folder, and none for its contents.",
473 "name": "removeInfo",
475 "parentId": { "type": "string" },
476 "index": { "type": "integer" }
484 "description": "Fired when a bookmark or folder changes. <b>Note:</b> Currently, only title and url changes trigger this.",
492 "name": "changeInfo",
494 "title": { "type": "string" },
506 "description": "Fired when a bookmark or folder is moved to a different parent folder.",
516 "parentId": { "type": "string" },
517 "index": { "type": "integer" },
518 "oldParentId": { "type": "string" },
519 "oldIndex": { "type": "integer" }
525 "name": "onChildrenReordered",
527 "description": "Fired when the children of a folder have changed their order due to the order being sorted in the UI. This is not called as a result of a move().",
535 "name": "reorderInfo",
539 "items": { "type": "string" }
546 "name": "onImportBegan",
548 "description": "Fired when a bookmark import session is begun. Expensive observers should ignore onCreated updates until onImportEnded is fired. Observers should still handle other notifications immediately.",
552 "name": "onImportEnded",
554 "description": "Fired when a bookmark import session is ended.",