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

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

Issue 9491002: json_schema_compiler: any, additionalProperties, functions on types (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rework, better errors 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
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace":"fileBrowserPrivate", 3 "namespace":"fileBrowserPrivate",
4 "nodoc": "true", 4 "nodoc": "true",
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "FileBrowserTask", 7 "id": "FileBrowserTask",
8 "type": "object", 8 "type": "object",
9 "description": "Represents information about available browser tasks. A task is an abstraction of an operation that the file browser can perform over a selected file set.", 9 "description": "Represents information about available browser tasks. A task is an abstraction of an operation that the file browser can perform over a selected file set.",
10 "properties": { 10 "properties": {
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 "type": "function", 286 "type": "function",
287 "description": "Gets Strings.", 287 "description": "Gets Strings.",
288 "parameters": [ 288 "parameters": [
289 { 289 {
290 "type": "function", 290 "type": "function",
291 "name": "callback", 291 "name": "callback",
292 "parameters": [ 292 "parameters": [
293 { 293 {
294 "name": "result", 294 "name": "result",
295 "type": "object", 295 "type": "object",
296 "properties": {},
297 "additionalProperties": {"type": "string"} 296 "additionalProperties": {"type": "string"}
298 } 297 }
299 ] 298 ]
300 } 299 }
301 ] 300 ]
302 }, 301 },
303 { 302 {
304 "name": "addFileWatch", 303 "name": "addFileWatch",
305 "description": "Adds file watch.", 304 "description": "Adds file watch.",
306 "parameters": [ 305 "parameters": [
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 "parameters": [ 353 "parameters": [
355 { 354 {
356 "name": "callback", 355 "name": "callback",
357 "type": "function", 356 "type": "function",
358 "optional": "false", 357 "optional": "false",
359 "parameters": [ 358 "parameters": [
360 { 359 {
361 "name" : "fileSystem", 360 "name" : "fileSystem",
362 "type": "object", 361 "type": "object",
363 "optional": "true", 362 "optional": "true",
364 "description": "A DOMFileSystem instance for local file system a ccess. null if the caller has no appropriate permissions." 363 "description": "A DOMFileSystem instance for local file system a ccess. null if the caller has no appropriate permissions.",
364 "additionalProperties": {"type": "any"}
365 } 365 }
366 ] 366 ]
367 } 367 }
368 ] 368 ]
369 }, 369 },
370 { 370 {
371 "name": "selectFiles", 371 "name": "selectFiles",
372 "type": "function", 372 "type": "function",
373 "description": "Selects multiple files.", 373 "description": "Selects multiple files.",
374 "parameters": [ 374 "parameters": [
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 { 463 {
464 "name": "mountType", 464 "name": "mountType",
465 "type": "string", 465 "type": "string",
466 "enum": ["device", "file", "network", "gdata"], 466 "enum": ["device", "file", "network", "gdata"],
467 "description": "Mount point type. 'file' for compressed files" 467 "description": "Mount point type. 'file' for compressed files"
468 }, 468 },
469 { 469 {
470 "name": "options", 470 "name": "options",
471 "type": "object", 471 "type": "object",
472 "description": "Name/value pairs for source specific options", 472 "description": "Name/value pairs for source specific options",
473 "optional": "true" 473 "optional": "true",
474 "additionalProperties": {"type": "any"}
474 } 475 }
475 ] 476 ]
476 }, 477 },
477 { 478 {
478 "name": "removeMount", 479 "name": "removeMount",
479 "description": "Unmounts a mounted resource.", 480 "description": "Unmounts a mounted resource.",
480 "parameters": [ 481 "parameters": [
481 { 482 {
482 "name": "mountPath", 483 "name": "mountPath",
483 "type": "string", 484 "type": "string",
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 { 573 {
573 "$ref": "FileWatchEvent", 574 "$ref": "FileWatchEvent",
574 "name": "event", 575 "name": "event",
575 "description": "File watch event information." 576 "description": "File watch event information."
576 } 577 }
577 ] 578 ]
578 } 579 }
579 ] 580 ]
580 } 581 }
581 ] 582 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698