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

Unified Diff: chrome/common/extensions/api/bookmark_manager_private.json

Issue 330983002: Added option to bookmarkManagerPrivate.getMetaInfo() to get meta info from all bookmarks in a one f… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/api/bookmark_manager_private.json
diff --git a/chrome/common/extensions/api/bookmark_manager_private.json b/chrome/common/extensions/api/bookmark_manager_private.json
index a965d17f9e17e37d082ffcb58f15165053a99c98..fb6c860f9107ecf753cb3d6f1570cead014937d0 100644
--- a/chrome/common/extensions/api/bookmark_manager_private.json
+++ b/chrome/common/extensions/api/bookmark_manager_private.json
@@ -49,6 +49,12 @@
"type": "object",
"description": "Collection of meta info fields.",
"additionalProperties": {"type": "string"}
+ },
+ {
+ "id": "MapMetaInfoFields",
+ "type": "object",
+ "description": "Map Id to MetaInfoFields.",
+ "additionalProperties": {"type": "any"}
}
],
"functions": [
@@ -269,10 +275,12 @@
"name": "getMetaInfo",
"type": "function",
"description": "Gets meta info from a bookmark node",
+ "allowAmbiguousOptionalArguments": true,
"parameters": [
{
"name": "id",
- "description": "The id of the bookmark to retrieve meta info from",
+ "description": "The id of the bookmark to retrieve meta info from. If ommited meta info for all nodes is returned.",
Mike Wittman 2014/06/16 17:47:35 nit: omitted
yefimt 2014/06/16 19:04:01 Done.
+ "optional": true,
"type": "string"
},
{
@@ -293,7 +301,8 @@
// if the API is made public.
"choices": [
{"type": "string"},
- {"$ref": "MetaInfoFields"}
+ {"$ref": "MetaInfoFields"},
+ {"$ref": "MapMetaInfoFields"}
]
}
]

Powered by Google App Engine
This is Rietveld 408576698