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

Side by Side Diff: chrome/common/extensions/api/bookmarks.json

Issue 9420041: Default parentId for bookmarks.create() (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added description of what parentId will default to. Created 8 years, 9 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
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/bookmarks/test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "bookmarks", 3 "namespace": "bookmarks",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "BookmarkTreeNode", 6 "id": "BookmarkTreeNode",
7 "type": "object", 7 "type": "object",
8 "description": "A node (either a bookmark or a folder) in the bookmark t ree. Child nodes are ordered within their parent folder.", 8 "description": "A node (either a bookmark or a folder) in the bookmark t ree. Child nodes are ordered within their parent folder.",
9 "properties": { 9 "properties": {
10 "id": {"type": "string", "minimum": 0, "description": "The unique iden tifier for the node. IDs are unique within the current profile, and they remain valid even after the browser is restarted."}, 10 "id": {"type": "string", "minimum": 0, "description": "The unique iden tifier for the node. IDs are unique within the current profile, and they remain valid even after the browser is restarted."},
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 }, 126 },
127 { 127 {
128 "name": "create", 128 "name": "create",
129 "type": "function", 129 "type": "function",
130 "description": "Creates a bookmark or folder under the specified parentI d. If url is NULL or missing, it will be a folder.", 130 "description": "Creates a bookmark or folder under the specified parentI d. If url is NULL or missing, it will be a folder.",
131 "parameters": [ 131 "parameters": [
132 { 132 {
133 "type": "object", 133 "type": "object",
134 "name": "bookmark", 134 "name": "bookmark",
135 "properties": { 135 "properties": {
136 "parentId": {"type": "string"}, 136 "parentId": {
137 "type": "string",
138 "optional": true,
139 "description": "Defaults to the Other Bookmarks folder."},
137 "index": {"type": "integer", "minimum": 0, "optional": true}, 140 "index": {"type": "integer", "minimum": 0, "optional": true},
138 "title": {"type": "string", "optional": true}, 141 "title": {"type": "string", "optional": true},
139 "url": {"type": "string", "optional": true} 142 "url": {"type": "string", "optional": true}
140 } 143 }
141 }, 144 },
142 { 145 {
143 "type": "function", 146 "type": "function",
144 "name": "callback", 147 "name": "callback",
145 "optional": true, 148 "optional": true,
146 "parameters": [ 149 "parameters": [
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 }, 323 },
321 { 324 {
322 "name": "onImportEnded", 325 "name": "onImportEnded",
323 "type": "function", 326 "type": "function",
324 "description": "Fired when a bookmark import session is ended.", 327 "description": "Fired when a bookmark import session is ended.",
325 "parameters": [] 328 "parameters": []
326 } 329 }
327 ] 330 ]
328 } 331 }
329 ] 332 ]
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/bookmarks/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698