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

Side by Side Diff: chrome/common/extensions/docs/server2/test_data/dict_generator/bookmarks.json

Issue 10577022: Extensions Docs Server: HandlebarDictGenerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 [
6 {
7 "namespace": "bookmarks",
8 "uses_feature_system": true,
9 "channel": "stable",
10 "dependencies": ["permission:bookmarks"],
11 "contexts": ["blessed_extension"],
12 "types": [
13 {
14 "id": "BookmarkTreeNode",
15 "type": "object",
16 "description": "A node (either a bookmark or a folder) in the bookmark t ree. Child nodes are ordered within their parent folder.",
17 "properties": {
18 "id": {"nodoc": true, "type": "string", "minimum": 0, "description": " The unique identifier for the node. IDs are unique within the current profile, a nd they remain valid even after the browser is restarted."},
19 "parentId": {"type": "string", "minimum": 0, "optional": true, "descri ption": "The <code>id</code> of the parent folder. Omitted for the root node."} ,
20 "index": {"type": "integer", "optional": true, "description": "The 0-b ased position of this node within its parent folder."},
21 "url": {"type": "string", "optional": true, "description": "The URL na vigated to when a user clicks the bookmark. Omitted for folders."},
22 "title": {"type": "string", "description": "The text displayed for the node."},
23 "dateAdded": {"type": "number", "optional": true, "description": "When this node was created, in milliseconds since the epoch (<code>new Date(dateAdde d)</code>)."},
24 "dateGroupModified": {"type": "number", "optional": true, "description ": "When the contents of this folder last changed, in milliseconds since the epo ch."},
25 "children": {"type": "array", "optional": true, "items": {"$ref": "Boo kmarkTreeNode"}, "description": "An ordered list of children of this node."}
26 }
27 }
28 ],
29 "functions": [
30 {
31 "nodoc": true,
32 "name": "get",
33 "type": "function",
34 "description": "Retrieves the specified BookmarkTreeNode(s).",
35 "parameters": [
36 {
37 "name": "idOrIdList",
38 "description": "A single string-valued id, or an array of string-val ued ids",
39 "choices": [
40 {"type": "string"},
41 {"type": "array", "items": {"type": "string"}, "minItems": 1}
42 ]
43 },
44 {
45 "type": "function",
46 "name": "callback",
47 "parameters": [
48 {"name": "results", "type": "array", "items": { "$ref": "BookmarkT reeNode"} }
49 ]
50 }
51 ]
52 },
53 {
54 "name": "getChildren",
55 "type": "function",
56 "description": "Retrieves the children of the specified BookmarkTreeNode id.",
57 "parameters": [
58 {"type": "string", "name": "id"},
59 {
60 "type": "function",
61 "name": "callback",
62 "parameters": [
63 {"name": "results", "type": "array", "items": { "$ref": "BookmarkT reeNode"} }
64 ]
65 }
66 ]
67 },
68 {
69 "name": "getRecent",
70 "type": "function",
71 "description": "Retrieves the recently added bookmarks.",
72 "parameters": [
73 {
74 "type": "integer",
75 "minimum": 1,
76 "name": "numberOfItems",
77 "description": "The maximum number of items to return."
78 },
79 {
80 "type": "function",
81 "name": "callback",
82 "parameters": [
83 {"name": "results", "type": "array", "items": { "$ref": "BookmarkT reeNode"} }
84 ]
85 }
86 ]
87 },
88 {
89 "name": "getTree",
90 "type": "function",
91 "description": "Retrieves the entire Bookmarks hierarchy.",
92 "parameters": [
93 {
94 "type": "function",
95 "name": "callback",
96 "parameters": [
97 {"name": "results", "type": "array", "items": { "$ref": "BookmarkT reeNode"} }
98 ]
99 }
100 ]
101 },
102 {
103 "name": "getSubTree",
104 "type": "function",
105 "description": "Retrieves part of the Bookmarks hierarchy, starting at t he specified node.",
106 "parameters": [
107 {
108 "type": "string",
109 "name": "id",
110 "description": "The ID of the root of the subtree to retrieve."
111 },
112 {
113 "type": "function",
114 "name": "callback",
115 "parameters": [
116 {"name": "results", "type": "array", "items": { "$ref": "BookmarkT reeNode"} }
117 ]
118 }
119 ]
120 },
121 {
122 "name": "search",
123 "type": "function",
124 "description": "Searches for BookmarkTreeNodes matching the given query. ",
125 "parameters": [
126 {"type": "string", "name": "query"},
127 {
128 "type": "function",
129 "name": "callback",
130 "parameters": [
131 {"name": "results", "type": "array", "items": { "$ref": "BookmarkT reeNode"} }
132 ]
133 }
134 ]
135 },
136 {
137 "name": "create",
138 "type": "function",
139 "description": "Creates a bookmark or folder under the specified parentI d. If url is NULL or missing, it will be a folder.",
140 "parameters": [
141 {
142 "type": "object",
143 "name": "bookmark",
144 "properties": {
145 "parentId": {
146 "type": "string",
147 "optional": true,
148 "description": "Defaults to the Other Bookmarks folder."},
149 "index": {"type": "integer", "minimum": 0, "optional": true},
150 "title": {"type": "string", "optional": true},
151 "url": {"type": "string", "optional": true}
152 }
153 },
154 {
155 "type": "function",
156 "name": "callback",
157 "optional": true,
158 "parameters": [
159 {"name": "result", "$ref": "BookmarkTreeNode" }
160 ]
161 }
162 ]
163 },
164 {
165 "name": "move",
166 "type": "function",
167 "description": "Moves the specified BookmarkTreeNode to the provided loc ation.",
168 "parameters": [
169 {"type": "string", "name": "id"},
170 {
171 "type": "object",
172 "name": "destination",
173 "properties": {
174 "parentId": {"type": "string"},
175 "index": {"type": "integer", "minimum": 0, "optional": true}
176 }
177 },
178 {
179 "type": "function",
180 "name": "callback",
181 "optional": true,
182 "parameters": [
183 {"name": "result", "$ref": "BookmarkTreeNode" }
184 ]
185 }
186 ]
187 },
188 {
189 "name": "update",
190 "type": "function",
191 "description": "Updates the properties of a bookmark or folder. Specify only the properties that you want to change; unspecified properties will be left unchanged. <b>Note:</b> Currently, only 'title' and 'url' are supported.",
192 "parameters": [
193 {"type": "string", "name": "id"},
194 {
195 "type": "object",
196 "name": "changes",
197 "properties": {
198 "title": {"type": "string", "optional": true},
199 "url": {"type": "string", "optional": true}
200 }
201 },
202 {
203 "type": "function",
204 "name": "callback",
205 "optional": true,
206 "parameters": [
207 {"name": "result", "$ref": "BookmarkTreeNode" }
208 ]
209 }
210 ]
211 },
212 {
213 "name": "remove",
214 "type": "function",
215 "description": "Removes a bookmark or an empty bookmark folder.",
216 "parameters": [
217 {"type": "string", "name": "id"},
218 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
219 ]
220 },
221 {
222 "name": "removeTree",
223 "type": "function",
224 "description": "Recursively removes a bookmark folder.",
225 "parameters": [
226 {"type": "string", "name": "id"},
227 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
228 ]
229 },
230 {
231 "name": "import",
232 "type": "function",
233 "description": "Imports bookmarks from a chrome html bookmark file",
234 "nodoc": "true",
235 "parameters": [
236 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
237 ]
238 },
239 {
240 "name": "export",
241 "type": "function",
242 "description": "Exports bookmarks to a chrome html bookmark file",
243 "nodoc": "true",
244 "parameters": [
245 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
246 ]
247 }
248 ],
249 "events": [
250 {
251 "name": "onCreated",
252 "type": "function",
253 "description": "Fired when a bookmark or folder is created.",
254 "parameters": [
255 {"type": "string", "name": "id"},
256 {
257 "$ref": "BookmarkTreeNode",
258 "name": "bookmark"
259 }
260 ]
261 },
262 {
263 "name": "onRemoved",
264 "type": "function",
265 "description": "Fired when a bookmark or folder is removed. When a fold er is removed recursively, a single notification is fired for the folder, and no ne for its contents.",
266 "parameters": [
267 {"type": "string", "name": "id"},
268 {
269 "type": "object",
270 "name": "removeInfo",
271 "properties": {
272 "parentId": { "type": "string" },
273 "index": { "type": "integer" }
274 }
275 }
276 ]
277 },
278 {
279 "name": "onChanged",
280 "type": "function",
281 "description": "Fired when a bookmark or folder changes. <b>Note:</b> C urrently, only title and url changes trigger this.",
282 "parameters": [
283 {"type": "string", "name": "id"},
284 {
285 "type": "object",
286 "name": "changeInfo",
287 "properties": {
288 "title": {"type": "string"},
289 "url": {"type": "string", "optional": true}
290 }
291 }
292 ]
293 },
294 {
295 "name": "onMoved",
296 "type": "function",
297 "description": "Fired when a bookmark or folder is moved to a different parent folder.",
298 "parameters": [
299 {"type": "string", "name": "id"},
300 {
301 "type": "object",
302 "name": "moveInfo",
303 "properties": {
304 "parentId": { "type": "string" },
305 "index": { "type": "integer" },
306 "oldParentId": { "type": "string" },
307 "oldIndex": { "type": "integer" }
308 }
309 }
310 ]
311 },
312 {
313 "name": "onChildrenReordered",
314 "type": "function",
315 "description": "Fired when the children of a folder have changed their o rder due to the order being sorted in the UI. This is not called as a result of a move().",
316 "parameters": [
317 {"type": "string", "name": "id"},
318 {
319 "type": "object",
320 "name": "reorderInfo",
321 "properties": {
322 "childIds": { "type": "array", "items": { "type": "string" } }
323 }
324 }
325 ]
326 },
327 {
328 "name": "onImportBegan",
329 "type": "function",
330 "description": "Fired when a bookmark import session is begun. Expensiv e observers should ignore handleCreated updates until onImportEnded is fired. O bservers should still handle other notifications immediately.",
331 "parameters": []
332 },
333 {
334 "name": "onImportEnded",
335 "type": "function",
336 "description": "Fired when a bookmark import session is ended.",
337 "parameters": []
338 }
339 ]
340 }
341 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698