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

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

Issue 9545006: This adds some GData private API to the file manager (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: One last SetBoolean 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 | « chrome/browser/chromeos/extensions/file_browser_private_api.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 [ 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 "type": "boolean", 44 "type": "boolean",
45 "description": "Flag that specifies if volume is mounted in read-onl y mode." 45 "description": "Flag that specifies if volume is mounted in read-onl y mode."
46 }, 46 },
47 "totalSizeKB": { 47 "totalSizeKB": {
48 "type": "integer", 48 "type": "integer",
49 "description": "Total disk volume size in KBs" 49 "description": "Total disk volume size in KBs"
50 } 50 }
51 } 51 }
52 }, 52 },
53 { 53 {
54 "id": "GDataFileProperties",
55 "type": "object",
56 "description": "GData file properties.",
57 "properties": {
58 "fileUrl": {
59 "type": "string",
60 "optional": true,
61 "description": "the URL given for this file."
62 },
63 "thumbnailUrl": {
64 "type": "string",
65 "optional": true,
66 "description": "URL to the GData thumbnail image for this file."
67 },
68 "editUrl": {
69 "type": "string",
70 "optional": true,
71 "description": "GData edit URL for this file."
72 },
73 "isPinned": {
74 "type": "boolean",
75 "optional": true,
76 "description": "True if the file is pinned in GData cache."
77 },
78 "isPresent": {
79 "type": "boolean",
80 "optional": true,
81 "description": "True if the file is present in GData cache."
82 },
83 "isDirty": {
84 "type": "boolean",
85 "optional": true,
86 "description": "True if the file is awaiting upload in GData cache."
87 },
88 "errorCode": {
89 "type": "integer",
90 "optional": true,
91 "description": "The error code (from base::PlatformFileError) if fet ching the properties for this file had an error."
92 }
93 }
94 },
95 {
54 "id": "MountPointInfo", 96 "id": "MountPointInfo",
55 "type": "object", 97 "type": "object",
56 "description": "Mounted point information.", 98 "description": "Mounted point information.",
57 "properties": { 99 "properties": {
58 "mountPath": { 100 "mountPath": {
59 "type": "string", 101 "type": "string",
60 "optional": true, 102 "optional": true,
61 "description": "Disk volume mount point path. The value corresponds to its Entry.fullPath in File API." 103 "description": "Disk volume mount point path. The value corresponds to its Entry.fullPath in File API."
62 }, 104 },
63 "sourceUrl": { 105 "sourceUrl": {
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 "enum": ["mount", "unmount"], 214 "enum": ["mount", "unmount"],
173 "description": "Is the event raised for mounting or unmounting." 215 "description": "Is the event raised for mounting or unmounting."
174 }, 216 },
175 "status": { 217 "status": {
176 "type": "string", 218 "type": "string",
177 "enum": ["success", "error_unknown", "error_internal", 219 "enum": ["success", "error_unknown", "error_internal",
178 "error_unknown_filesystem", "error_unsuported_filesystem", 220 "error_unknown_filesystem", "error_unsuported_filesystem",
179 "error_invalid_archive", "error_libcros_missing", 221 "error_invalid_archive", "error_libcros_missing",
180 "error_authentication", "error_network", 222 "error_authentication", "error_network",
181 "error_path_unmounted"], 223 "error_path_unmounted"],
182 "description": "Event type that tells listeners if mount was success full or an error occurred. It also specifies the error." 224 "description": "Event type that tells listeners if mount was success ful or an error occurred. It also specifies the error."
183 }, 225 },
184 "sourceUrl": { 226 "sourceUrl": {
185 "type": "string", 227 "type": "string",
186 "description": "Path that has been mounted." 228 "description": "Path that has been mounted."
187 }, 229 },
188 "mountPath": { 230 "mountPath": {
189 "type": "string", 231 "type": "string",
190 "optional": true, 232 "optional": true,
191 "description": "Path that sourcePath was mounted to." 233 "description": "Path that sourcePath was mounted to."
192 }, 234 },
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 { 462 {
421 "name" : "success", 463 "name" : "success",
422 "type": "boolean", 464 "type": "boolean",
423 "description": "True if the selected files can be viewed by the browser." 465 "description": "True if the selected files can be viewed by the browser."
424 } 466 }
425 ] 467 ]
426 } 468 }
427 ] 469 ]
428 }, 470 },
429 { 471 {
472 "name": "getGDataFileProperties",
473 "description": "Requests GData file properties for a list of files",
474 "parameters": [
475 {
476 "name": "fileUrls",
477 "type": "array",
478 "description": "Array of file URLs to fetch properties for."
479 },
480 {
481 "name": "callback",
482 "type": "function",
483 "optional": "false",
484 "parameters": [
485 {
486 "name" : "fileProperties",
487 "type": "array",
488 "items": {"$ref": "GDataFileProperties"},
489 "description": "An array of the requested file properties, one e ntry for each file in fileUrls."
490 }
491 ]
492 }
493 ]
494 },
495 {
496 "name": "pinGDataFile",
497 "description": "Pins a GData file in the cache",
498 "parameters": [
499 {
500 "name": "fileUrls",
501 "type": "array",
502 "description": "Array of file URLs to pin."
503 },
504 {
505 "name": "callback",
506 "type": "function",
507 "optional": "false",
508 "parameters": [
509 {
510 "name" : "fileProperties",
511 "type": "array",
512 "items": {"$ref": "GDataFileProperties"},
513 "description": "An array of the pinned properties after pinning for the requested files, one entry for each file in fileUrls."
514 }
515 ]
516 }
517 ]
518 },
519 {
430 "name": "getVolumeMetadata", 520 "name": "getVolumeMetadata",
431 "description": "Requests volume's metadata", 521 "description": "Requests volume's metadata",
432 "parameters": [ 522 "parameters": [
433 { 523 {
434 "name": "mountUrl", 524 "name": "mountUrl",
435 "type": "string", 525 "type": "string",
436 "description": "Mount url of the volume." 526 "description": "Mount url of the volume."
437 }, 527 },
438 { 528 {
439 "name": "callback", 529 "name": "callback",
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 { 684 {
595 "$ref": "FileWatchEvent", 685 "$ref": "FileWatchEvent",
596 "name": "event", 686 "name": "event",
597 "description": "File watch event information." 687 "description": "File watch event information."
598 } 688 }
599 ] 689 ]
600 } 690 }
601 ] 691 ]
602 } 692 }
603 ] 693 ]
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/file_browser_private_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698