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

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

Issue 11414152: Drive: Rename GData to Drive in extension JS API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: review fix (comment #7) Created 8 years 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 // 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":"fileBrowserPrivate", 7 "namespace":"fileBrowserPrivate",
8 "nodoc": "true", 8 "nodoc": "true",
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 }, 47 },
48 "totalSizeKB": { 48 "totalSizeKB": {
49 "type": "integer", 49 "type": "integer",
50 "description": "Total disk volume size in KBs" 50 "description": "Total disk volume size in KBs"
51 } 51 }
52 } 52 }
53 }, 53 },
54 { 54 {
55 "id": "DriveWebApp", 55 "id": "DriveWebApp",
56 "type": "object", 56 "type": "object",
57 "description": "GData WebApp properties.", 57 "description": "Drive WebApp properties.",
58 "properties": { 58 "properties": {
59 "appId": { 59 "appId": {
60 "type": "string", 60 "type": "string",
61 "description": "WebApp ID." 61 "description": "WebApp ID."
62 }, 62 },
63 "appName": { 63 "appName": {
64 "type": "string", 64 "type": "string",
65 "description": "WebApp name." 65 "description": "WebApp name."
66 }, 66 },
67 "appIcon": { 67 "appIcon": {
68 "type": "string", 68 "type": "string",
69 "optional": true, 69 "optional": true,
70 "description": "URL to the GData application icon for this applicati on." 70 "description": "URL to the Drive application icon for this applicati on."
71 }, 71 },
72 "docIcon": { 72 "docIcon": {
73 "type": "string", 73 "type": "string",
74 "optional": true, 74 "optional": true,
75 "description": "URL to the GData document icon for documents associa ted with this application." 75 "description": "URL to the Drive document icon for documents associa ted with this application."
76 }, 76 },
77 "objectType": { 77 "objectType": {
78 "type": "string", 78 "type": "string",
79 "description": "Object (file) type description." 79 "description": "Object (file) type description."
80 }, 80 },
81 "isPrimary": { 81 "isPrimary": {
82 "type": "boolean", 82 "type": "boolean",
83 "description": "True if this WebApp is the primary (default) open ac tion for this file." 83 "description": "True if this WebApp is the primary (default) open ac tion for this file."
84 } 84 }
85 } 85 }
86 }, 86 },
87 { 87 {
88 "id": "GDataFileProperties", 88 "id": "DriveFileProperties",
89 "type": "object", 89 "type": "object",
90 "description": "GData file properties.", 90 "description": "Drive file properties.",
91 "properties": { 91 "properties": {
92 "fileUrl": { 92 "fileUrl": {
93 "type": "string", 93 "type": "string",
94 "optional": true, 94 "optional": true,
95 "description": "the URL given for this file." 95 "description": "the URL given for this file."
96 }, 96 },
97 "thumbnailUrl": { 97 "thumbnailUrl": {
98 "type": "string", 98 "type": "string",
99 "optional": true, 99 "optional": true,
100 "description": "URL to the GData thumbnail image for this file." 100 "description": "URL to the Drive thumbnail image for this file."
101 }, 101 },
102 "contentUrl": { 102 "contentUrl": {
103 "type": "string", 103 "type": "string",
104 "optional": true, 104 "optional": true,
105 "description": "GData URL to the content for this file." 105 "description": "Drive URL to the content for this file."
106 }, 106 },
107 "editUrl": { 107 "editUrl": {
108 "type": "string", 108 "type": "string",
109 "optional": true, 109 "optional": true,
110 "description": "GData edit URL for this file." 110 "description": "Drive edit URL for this file."
111 }, 111 },
112 "shareUrl": { 112 "shareUrl": {
113 "type": "string", 113 "type": "string",
114 "optional": true, 114 "optional": true,
115 "description": "GData share URL for this file." 115 "description": "Drive share URL for this file."
116 }, 116 },
117 "isPinned": { 117 "isPinned": {
118 "type": "boolean", 118 "type": "boolean",
119 "optional": true, 119 "optional": true,
120 "description": "True if the file is pinned in GData cache." 120 "description": "True if the file is pinned in Drive cache."
121 }, 121 },
122 "isPresent": { 122 "isPresent": {
123 "type": "boolean", 123 "type": "boolean",
124 "optional": true, 124 "optional": true,
125 "description": "True if the file is present in GData cache." 125 "description": "True if the file is present in Drive cache."
126 }, 126 },
127 "isDirty": { 127 "isDirty": {
128 "type": "boolean", 128 "type": "boolean",
129 "optional": true, 129 "optional": true,
130 "description": "True if the file is awaiting upload in GData cache." 130 "description": "True if the file is awaiting upload in Drive cache."
131 }, 131 },
132 "isHosted": { 132 "isHosted": {
133 "type": "boolean", 133 "type": "boolean",
134 "optional": true, 134 "optional": true,
135 "description": "True if the file is hosted on a GData server instead of local." 135 "description": "True if the file is hosted on a Drive server instead of local."
136 }, 136 },
137 "errorCode": { 137 "errorCode": {
138 "type": "integer", 138 "type": "integer",
139 "optional": true, 139 "optional": true,
140 "description": "The error code (from base::PlatformFileError) if fet ching the properties for this file had an error." 140 "description": "The error code (from base::PlatformFileError) if fet ching the properties for this file had an error."
141 }, 141 },
142 "driveApps" : { 142 "driveApps" : {
143 "type": "array", 143 "type": "array",
144 "optional": true, 144 "optional": true,
145 "items": {"$ref": "DriveWebApp"}, 145 "items": {"$ref": "DriveWebApp"},
146 "description": "An array of WebApps capable of opening this file." 146 "description": "An array of WebApps capable of opening this file."
147 }, 147 },
148 "contentMimeType": { 148 "contentMimeType": {
149 "type": "string", 149 "type": "string",
150 "optional": true, 150 "optional": true,
151 "description": "GData MIME type for this file." 151 "description": "Drive MIME type for this file."
152 } 152 }
153 } 153 }
154 }, 154 },
155 { 155 {
156 "id": "MountPointInfo", 156 "id": "MountPointInfo",
157 "type": "object", 157 "type": "object",
158 "description": "Mounted point information.", 158 "description": "Mounted point information.",
159 "properties": { 159 "properties": {
160 "mountPath": { 160 "mountPath": {
161 "type": "string", 161 "type": "string",
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 "type": "string", 286 "type": "string",
287 "description": "Path that has been mounted." 287 "description": "Path that has been mounted."
288 }, 288 },
289 "mountPath": { 289 "mountPath": {
290 "type": "string", 290 "type": "string",
291 "optional": true, 291 "optional": true,
292 "description": "Path that sourcePath was mounted to." 292 "description": "Path that sourcePath was mounted to."
293 }, 293 },
294 "mountType": { 294 "mountType": {
295 "type": "string", 295 "type": "string",
296 "enum": ["device", "file", "network", "gdata"], 296 "enum": ["device", "file", "network", "drive"],
297 "description": "Type of the mount." 297 "description": "Type of the mount."
298 } 298 }
299 } 299 }
300 }, 300 },
301 { 301 {
302 "id": "FileTransferStatus", 302 "id": "FileTransferStatus",
303 "type": "object", 303 "type": "object",
304 "description": "Payload data for file transfer status updates.", 304 "description": "Payload data for file transfer status updates.",
305 "properties": { 305 "properties": {
306 "fileUrl": { 306 "fileUrl": {
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 { 611 {
612 "name" : "success", 612 "name" : "success",
613 "type": "boolean", 613 "type": "boolean",
614 "description": "True if the selected files can be viewed by the browser." 614 "description": "True if the selected files can be viewed by the browser."
615 } 615 }
616 ] 616 ]
617 } 617 }
618 ] 618 ]
619 }, 619 },
620 { 620 {
621 "name": "getGDataFileProperties", 621 "name": "getDriveFileProperties",
622 "description": "Requests GData file properties for a list of files", 622 "description": "Requests Drive file properties for a list of files",
623 "parameters": [ 623 "parameters": [
624 { 624 {
625 "name": "fileUrls", 625 "name": "fileUrls",
626 "type": "array", 626 "type": "array",
627 "description": "Array of file URLs to fetch properties for." 627 "description": "Array of file URLs to fetch properties for."
628 }, 628 },
629 { 629 {
630 "name": "callback", 630 "name": "callback",
631 "type": "function", 631 "type": "function",
632 "parameters": [ 632 "parameters": [
633 { 633 {
634 "name" : "fileProperties", 634 "name" : "fileProperties",
635 "type": "array", 635 "type": "array",
636 "items": {"$ref": "GDataFileProperties"}, 636 "items": {"$ref": "DriveFileProperties"},
637 "description": "An array of the requested file properties, one e ntry for each file in fileUrls." 637 "description": "An array of the requested file properties, one e ntry for each file in fileUrls."
638 } 638 }
639 ] 639 ]
640 } 640 }
641 ] 641 ]
642 }, 642 },
643 { 643 {
644 "name": "pinGDataFile", 644 "name": "pinDriveFile",
645 "description": "Pins/unpins a GData file in the cache", 645 "description": "Pins/unpins a Drive file in the cache",
646 "parameters": [ 646 "parameters": [
647 { 647 {
648 "name": "fileUrls", 648 "name": "fileUrls",
649 "type": "array", 649 "type": "array",
650 "description": "Array of file URLs to pin/unpin." 650 "description": "Array of file URLs to pin/unpin."
651 }, 651 },
652 { 652 {
653 "name": "pin", 653 "name": "pin",
654 "type": "boolean", 654 "type": "boolean",
655 "description": "Pass true to pin the files listed." 655 "description": "Pass true to pin the files listed."
656 }, 656 },
657 { 657 {
658 "name": "callback", 658 "name": "callback",
659 "type": "function", 659 "type": "function",
660 "parameters": [ 660 "parameters": [
661 { 661 {
662 "name" : "fileProperties", 662 "name" : "fileProperties",
663 "type": "array", 663 "type": "array",
664 "items": {"$ref": "GDataFileProperties"}, 664 "items": {"$ref": "DriveFileProperties"},
665 "description": "An array of the pinned properties after pinning/ unpinning the requested files, one entry for each file in fileUrls." 665 "description": "An array of the pinned properties after pinning/ unpinning the requested files, one entry for each file in fileUrls."
666 } 666 }
667 ] 667 ]
668 } 668 }
669 ] 669 ]
670 }, 670 },
671 { 671 {
672 "name": "getFileLocations", 672 "name": "getFileLocations",
673 "description": "Get file locations", 673 "description": "Get file locations",
674 "parameters": [ 674 "parameters": [
(...skipping 11 matching lines...) Expand all
686 "name" : "locations", 686 "name" : "locations",
687 "type": "array", 687 "type": "array",
688 "items": {"type": "string"}, 688 "items": {"type": "string"},
689 "description": "An array of the file locations for the requested files, one entry for each file in fileUrls." 689 "description": "An array of the file locations for the requested files, one entry for each file in fileUrls."
690 } 690 }
691 ] 691 ]
692 } 692 }
693 ] 693 ]
694 }, 694 },
695 { 695 {
696 "name": "getGDataFiles", 696 "name": "getDriveFiles",
697 "description": "Get GData files", 697 "description": "Get Drive files",
698 "parameters": [ 698 "parameters": [
699 { 699 {
700 "name": "fileUrls", 700 "name": "fileUrls",
701 "type": "array", 701 "type": "array",
702 "description": "Array of gdata file URLs to get.", 702 "description": "Array of Drive file URLs to get.",
703 "items": { "type": "string" } 703 "items": { "type": "string" }
704 }, 704 },
705 { 705 {
706 "name": "callback", 706 "name": "callback",
707 "type": "function", 707 "type": "function",
708 "parameters": [ 708 "parameters": [
709 { 709 {
710 "name" : "localFilePaths", 710 "name" : "localFilePaths",
711 "type": "array", 711 "type": "array",
712 "items": {"type": "string"}, 712 "items": {"type": "string"},
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 "description": "Mount a resource or a file.", 744 "description": "Mount a resource or a file.",
745 "parameters": [ 745 "parameters": [
746 { 746 {
747 "name": "source", 747 "name": "source",
748 "type": "string", 748 "type": "string",
749 "description": "Mount point source. For compressed files it is relat ive file path within external file system" 749 "description": "Mount point source. For compressed files it is relat ive file path within external file system"
750 }, 750 },
751 { 751 {
752 "name": "mountType", 752 "name": "mountType",
753 "type": "string", 753 "type": "string",
754 "enum": ["device", "file", "network", "gdata"], 754 "enum": ["device", "file", "network", "drive"],
755 "description": "Mount point type. 'file' for compressed files" 755 "description": "Mount point type. 'file' for compressed files"
756 }, 756 },
757 { 757 {
758 "name": "options", 758 "name": "options",
759 "type": "object", 759 "type": "object",
760 "description": "Name/value pairs for source specific options" 760 "description": "Name/value pairs for source specific options"
761 }, 761 },
762 { 762 {
763 "name": "callback", 763 "name": "callback",
764 "type": "function", 764 "type": "function",
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 "name": "changeInfo", 975 "name": "changeInfo",
976 "type": "object", 976 "type": "object",
977 "properties": { 977 "properties": {
978 "cellularDisabled": {"type":"boolean", "optional":true}, 978 "cellularDisabled": {"type":"boolean", "optional":true},
979 "hostedFilesDisabled": {"type":"boolean", "optional":true} 979 "hostedFilesDisabled": {"type":"boolean", "optional":true}
980 } 980 }
981 } 981 }
982 ] 982 ]
983 }, 983 },
984 { 984 {
985 "name": "searchGData", 985 "name": "searchDrive",
986 "type": "function", 986 "type": "function",
987 "description": "Performs drive content search.", 987 "description": "Performs drive content search.",
988 "parameters": [ 988 "parameters": [
989 { 989 {
990 "name": "query", 990 "name": "query",
991 "description": "Search query.", 991 "description": "Search query.",
992 "type": "string" 992 "type": "string"
993 }, 993 },
994 { 994 {
995 "name": "nextFeed", 995 "name": "nextFeed",
996 "type": "string", 996 "type": "string",
997 "description": "ID of the search feed that should be fetched next. V alue passed here should be gotten from previous searchGData call. It can be empt y for the initial search request." 997 "description": "ID of the search feed that should be fetched next. V alue passed here should be gotten from previous searchDrive call. It can be empt y for the initial search request."
998 }, 998 },
999 { 999 {
1000 "name": "callback", 1000 "name": "callback",
1001 "type": "function", 1001 "type": "function",
1002 "parameters": [ 1002 "parameters": [
1003 { 1003 {
1004 "name": "entries", 1004 "name": "entries",
1005 "type": "array", 1005 "type": "array",
1006 "items": { 1006 "items": {
1007 "type": "object", 1007 "type": "object",
1008 "isInstanceOf": "Entry", 1008 "isInstanceOf": "Entry",
1009 "description": "Entry representing a search result." 1009 "description": "Entry representing a search result."
1010 } 1010 }
1011 }, 1011 },
1012 { 1012 {
1013 "name": "nextFeed", 1013 "name": "nextFeed",
1014 "type": "string", 1014 "type": "string",
1015 "description": "ID of the feed that contains next chunk of the s earch result. Should be sent to the next searchGData request to perform incremen tal search." 1015 "description": "ID of the feed that contains next chunk of the s earch result. Should be sent to the next searchDrive request to perform incremen tal search."
1016 } 1016 }
1017 ] 1017 ]
1018 } 1018 }
1019 ] 1019 ]
1020 }, 1020 },
1021 { 1021 {
1022 "name": "clearDriveCache", 1022 "name": "clearDriveCache",
1023 "description": "Clear all GData local caches.", 1023 "description": "Clear all Drive local caches.",
1024 "parameters": [] 1024 "parameters": []
1025 }, 1025 },
1026 { 1026 {
1027 "name": "reloadDrive", 1027 "name": "reloadDrive",
1028 "description": "Reload the filesystem metadata from the server immediate ly.", 1028 "description": "Reload the filesystem metadata from the server immediate ly.",
1029 "parameters": [] 1029 "parameters": []
1030 }, 1030 },
1031 { 1031 {
1032 "name": "zipSelection", 1032 "name": "zipSelection",
1033 "description": "Create a zip file for the selected files.", 1033 "description": "Create a zip file for the selected files.",
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 }, 1164 },
1165 { 1165 {
1166 "name": "onNetworkConnectionChanged", 1166 "name": "onNetworkConnectionChanged",
1167 "type": "function", 1167 "type": "function",
1168 "description": "Fired when the active network connection state changes. The network connection state can be retrieved via 'getNetworkConnectionState'.", 1168 "description": "Fired when the active network connection state changes. The network connection state can be retrieved via 'getNetworkConnectionState'.",
1169 "parameters": [] 1169 "parameters": []
1170 } 1170 }
1171 ] 1171 ]
1172 } 1172 }
1173 ] 1173 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698