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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [ 5 [
6 { 6 {
7 "namespace": "bookmarkManagerPrivate", 7 "namespace": "bookmarkManagerPrivate",
8 "description": "none", 8 "description": "none",
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 "$ref": "bookmarks.BookmarkTreeNode" 262 "$ref": "bookmarks.BookmarkTreeNode"
263 } 263 }
264 ] 264 ]
265 } 265 }
266 ] 266 ]
267 }, 267 },
268 { 268 {
269 "name": "getMetaInfo", 269 "name": "getMetaInfo",
270 "type": "function", 270 "type": "function",
271 "description": "Gets meta info from a bookmark node", 271 "description": "Gets meta info from a bookmark node",
272 "allowAmbiguousOptionalArguments": true,
272 "parameters": [ 273 "parameters": [
273 { 274 {
274 "name": "id", 275 "name": "id",
275 "description": "The id of the bookmark to retrieve meta info from", 276 "description": "The id of the bookmark to retrieve meta info from. I f omitted meta info for all nodes is returned.",
277 "optional": true,
276 "type": "string" 278 "type": "string"
277 }, 279 },
278 { 280 {
279 "name": "key", 281 "name": "key",
280 "description": "The key for the meta info to retrieve. If omitted, a ll fields are returned", 282 "description": "The key for the meta info to retrieve. If omitted, a ll fields are returned",
281 "optional": true, 283 "optional": true,
282 "type": "string" 284 "type": "string"
283 }, 285 },
284 { 286 {
285 "type": "function", 287 "type": "function",
286 "name": "callback", 288 "name": "callback",
287 "parameters": [ 289 "parameters": [
288 { 290 {
289 "name": "value", 291 "name": "value",
290 "description": "If a key was given, the value of the specified f ield, if present. Otherwise an object containing all meta info fields for the no de.", 292 "description": "If a key was given, the value of the specified f ield, if present. Otherwise an object containing all meta info fields for the no de. If id is not given then meta info for all nodes as an object with node id to meta info.",
291 "optional": true, 293 "optional": true,
292 // TODO(rfevang): Convert this to always return MetaInfoFields
293 // if the API is made public.
294 "choices": [ 294 "choices": [
295 {"type": "string"}, 295 {"type": "string"},
296 {"$ref": "MetaInfoFields"} 296 {"type": "object", "additionalProperties": {"type": "any"}}
297 ] 297 ]
298 } 298 }
299 ] 299 ]
300 } 300 }
301 ] 301 ]
302 }, 302 },
303 { 303 {
304 "name": "setMetaInfo", 304 "name": "setMetaInfo",
305 "type": "function", 305 "type": "function",
306 "description": "Sets a meta info value for a bookmark node", 306 "description": "Sets a meta info value for a bookmark node",
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 "type": "function", 436 "type": "function",
437 "description": "Fired when the meta info of a node changes.", 437 "description": "Fired when the meta info of a node changes.",
438 "parameters": [ 438 "parameters": [
439 {"name": "id", "type": "string"}, 439 {"name": "id", "type": "string"},
440 {"name": "metaInfoChanges", "$ref": "MetaInfoFields"} 440 {"name": "metaInfoChanges", "$ref": "MetaInfoFields"}
441 ] 441 ]
442 } 442 }
443 ] 443 ]
444 } 444 }
445 ] 445 ]
OLDNEW
« 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