summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/common/extensions/api/bookmarks.json
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/common/extensions/api/bookmarks.json')
-rw-r--r--chromium/chrome/common/extensions/api/bookmarks.json93
1 files changed, 66 insertions, 27 deletions
diff --git a/chromium/chrome/common/extensions/api/bookmarks.json b/chromium/chrome/common/extensions/api/bookmarks.json
index e16836298db..e6a82a76aa4 100644
--- a/chromium/chrome/common/extensions/api/bookmarks.json
+++ b/chromium/chrome/common/extensions/api/bookmarks.json
@@ -5,7 +5,7 @@
[
{
"namespace": "bookmarks",
- "description": "Use the <code>chrome.bookmarks</code> API 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.",
+ "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.",
"properties": {
"MAX_WRITE_OPERATIONS_PER_HOUR": {
"value": 100,
@@ -57,6 +57,12 @@
"optional": true,
"description": "When the contents of this folder last changed, in milliseconds since the epoch."
},
+ "unmodifiable": {
+ "type": "string",
+ "enum": ["managed"],
+ "optional": true,
+ "description": "Indicates the reason why this node is unmodifiable. The <var>managed</var> value indicates that this node was configured by the system administrator. Omitted if the node can be modified by the user and the extension (default)."
+ },
"children": {
"type": "array",
"optional": true,
@@ -64,6 +70,33 @@
"description": "An ordered list of children of this node."
}
}
+ },
+ {
+ "id": "CreateDetails",
+ "description": "Object passed to the create() function.",
+ "inline_doc": true,
+ "type": "object",
+ "properties": {
+ "parentId": {
+ "type": "string",
+ "serialized_type": "int64",
+ "optional": true,
+ "description": "Defaults to the Other Bookmarks folder."
+ },
+ "index": {
+ "type": "integer",
+ "minimum": 0,
+ "optional": true
+ },
+ "title": {
+ "type": "string",
+ "optional": true
+ },
+ "url": {
+ "type": "string",
+ "optional": true
+ }
+ }
}
],
"functions": [
@@ -195,11 +228,38 @@
{
"name": "search",
"type": "function",
- "description": "Searches for BookmarkTreeNodes matching the given query.",
+ "description": "Searches for BookmarkTreeNodes matching the given query. Queries specified with an object produce BookmarkTreeNodes matching all specified properties.",
"parameters": [
{
- "type": "string",
- "name": "query"
+ "name": "query",
+ "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.",
+ "choices": [
+ {
+ "type": "string",
+ "description": "A string of words and quoted phrases that are matched against bookmark URLs and titles."
+ },
+ {
+ "type": "object",
+ "description": "An object specifying properties and values to match when searching. Produces bookmarks matching all properties.",
+ "properties": {
+ "query": {
+ "type": "string",
+ "optional": true,
+ "description": "A string of words and quoted phrases that are matched against bookmark URLs and titles."
+ },
+ "url": {
+ "type": "string",
+ "optional": true,
+ "description": "The URL of the bookmark; matches verbatim. Note that folders have no URL."
+ },
+ "title": {
+ "type": "string",
+ "optional": true,
+ "description": "The title of the bookmark; matches verbatim."
+ }
+ }
+ }
+ ]
},
{
"type": "function",
@@ -220,29 +280,8 @@
"description": "Creates a bookmark or folder under the specified parentId. If url is NULL or missing, it will be a folder.",
"parameters": [
{
- "type": "object",
- "name": "bookmark",
- "properties": {
- "parentId": {
- "type": "string",
- "serialized_type": "int64",
- "optional": true,
- "description": "Defaults to the Other Bookmarks folder."
- },
- "index": {
- "type": "integer",
- "minimum": 0,
- "optional": true
- },
- "title": {
- "type": "string",
- "optional": true
- },
- "url": {
- "type": "string",
- "optional": true
- }
- }
+ "$ref": "CreateDetails",
+ "name": "bookmark"
},
{
"type": "function",