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

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
« no previous file with comments | « chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ef802b19a7cb60a192140accbfde7f8dc8fc1a49 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 omitted meta info for all nodes is returned.",
+ "optional": true,
"type": "string"
},
{
@@ -287,13 +295,13 @@
"parameters": [
{
"name": "value",
- "description": "If a key was given, the value of the specified field, if present. Otherwise an object containing all meta info fields for the node.",
+ "description": "If a key was given, the value of the specified field, if present. Otherwise an object containing all meta info fields for the node. If id is not given then meta info for all nodes as an object with node id to meta info.",
not at google - send to devlin 2014/06/16 21:49:27 Ah, yeah, this is a pretty confusing API no matter
yefimt 2014/06/16 21:56:20 Originally it was ignoring second parameter if fir
not at google - send to devlin 2014/06/16 21:59:47 undefined... and set error? sounds like it should
yefimt 2014/06/16 22:32:12 extension developers don't want error as they don'
not at google - send to devlin 2014/06/16 22:33:54 they don't get a callback..? then where does the u
"optional": true,
// TODO(rfevang): Convert this to always return MetaInfoFields
// if the API is made public.
"choices": [
{"type": "string"},
- {"$ref": "MetaInfoFields"}
+ {"$ref": "MapMetaInfoFields"}
not at google - send to devlin 2014/06/16 21:49:27 if you're going to do this, might as well inline t
yefimt 2014/06/16 21:56:20 Do you mean remove "choices", yes it is possible O
not at google - send to devlin 2014/06/16 21:59:47 No I mean make this "choices": [ {"type": "stri
yefimt 2014/06/16 22:00:42 I think it will be too confusing. Combining MetaIn
not at google - send to devlin 2014/06/16 22:02:01 I don't understand. this is exactly what you alrea
yefimt 2014/06/16 22:32:12 Done.
]
}
]
« no previous file with comments | « chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698