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 "uses_feature_system": true,
10 "dependencies": ["permission:bookmarks"],
11 "contexts": ["blessed_extension"],
13 "MAX_WRITE_OPERATIONS_PER_HOUR": {
15 "description": "The maximum number of <code>move</code>, <code>update</code>, <code>create</code>, or <code>remove</code> operations that can be performed each hour. Updates that would cause this limit to be exceeded fail."
17 "MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE": {
19 "description": "The maximum number of <code>move</code>, <code>update</code>, <code>create</code>, or <code>remove</code> operations that can be performed each minute, sustained over 10 minutes. Updates that would cause this limit to be exceeded fail."
24 "id": "BookmarkTreeNode",
26 "description": "A node (either a bookmark or a folder) in the bookmark tree. Child nodes are ordered within their parent folder.",
31 "description": "The unique identifier for the node. IDs are unique within the current profile, and they remain valid even after the browser is restarted."
37 "description": "The <code>id</code> of the parent folder. Omitted for the root node."
42 "description": "The 0-based position of this node within its parent folder."
47 "description": "The URL navigated to when a user clicks the bookmark. Omitted for folders."
51 "description": "The text displayed for the node."
56 "description": "When this node was created, in milliseconds since the epoch (<code>new Date(dateAdded)</code>)."
58 "dateGroupModified": {
61 "description": "When the contents of this folder last changed, in milliseconds since the epoch."
66 "items": { "$ref": "BookmarkTreeNode" },
67 "description": "An ordered list of children of this node."
76 "description": "Retrieves the specified BookmarkTreeNode(s).",
80 "description": "A single string-valued id, or an array of string-valued ids",
84 "serialized_type": "int64"
90 "serialized_type": "int64"
103 "items": { "$ref": "BookmarkTreeNode" }
110 "name": "getChildren",
112 "description": "Retrieves the children of the specified BookmarkTreeNode id.",
116 "serialized_type": "int64",
126 "items": { "$ref": "BookmarkTreeNode"}
135 "description": "Retrieves the recently added bookmarks.",
140 "name": "numberOfItems",
141 "description": "The maximum number of items to return."
150 "items": { "$ref": "BookmarkTreeNode" }
159 "description": "Retrieves the entire Bookmarks hierarchy.",
168 "items": { "$ref": "BookmarkTreeNode" }
175 "name": "getSubTree",
177 "description": "Retrieves part of the Bookmarks hierarchy, starting at the specified node.",
181 "serialized_type": "int64",
183 "description": "The ID of the root of the subtree to retrieve."
192 "items": { "$ref": "BookmarkTreeNode" }
201 "description": "Searches for BookmarkTreeNodes matching the given query.",
214 "items": { "$ref": "BookmarkTreeNode" }
223 "description": "Creates a bookmark or folder under the specified parentId. If url is NULL or missing, it will be a folder.",
231 "serialized_type": "int64",
233 "description": "Defaults to the Other Bookmarks folder."
257 "$ref": "BookmarkTreeNode"
266 "description": "Moves the specified BookmarkTreeNode to the provided location.",
270 "serialized_type": "int64",
275 "name": "destination",
295 "$ref": "BookmarkTreeNode"
304 "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.",
308 "serialized_type": "int64",
332 "$ref": "BookmarkTreeNode"
341 "description": "Removes a bookmark or an empty bookmark folder.",
345 "serialized_type": "int64",
357 "name": "removeTree",
359 "description": "Recursively removes a bookmark folder.",
363 "serialized_type": "int64",
377 "description": "Imports bookmarks from a chrome html bookmark file",
391 "description": "Exports bookmarks to a chrome html bookmark file",
407 "description": "Fired when a bookmark or folder is created.",
414 "$ref": "BookmarkTreeNode",
422 "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.",
430 "name": "removeInfo",
432 "parentId": { "type": "string" },
433 "index": { "type": "integer" }
441 "description": "Fired when a bookmark or folder changes. <b>Note:</b> Currently, only title and url changes trigger this.",
449 "name": "changeInfo",
451 "title": { "type": "string" },
463 "description": "Fired when a bookmark or folder is moved to a different parent folder.",
473 "parentId": { "type": "string" },
474 "index": { "type": "integer" },
475 "oldParentId": { "type": "string" },
476 "oldIndex": { "type": "integer" }
482 "name": "onChildrenReordered",
484 "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().",
492 "name": "reorderInfo",
496 "items": { "type": "string" }
503 "name": "onImportBegan",
505 "description": "Fired when a bookmark import session is begun. Expensive observers should ignore handleCreated updates until onImportEnded is fired. Observers should still handle other notifications immediately.",
509 "name": "onImportEnded",
511 "description": "Fired when a bookmark import session is ended.",