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

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

Issue 23658009: Replace mountType by volumeType on fileBrowserPrivate APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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
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 "compiler_options": { 8 "compiler_options": {
9 "implemented_in": "chrome/browser/chromeos/extensions/file_manager/file_br owser_private_api_functions.h" 9 "implemented_in": "chrome/browser/chromeos/extensions/file_manager/file_br owser_private_api_functions.h"
10 }, 10 },
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 "mountPath": { 131 "mountPath": {
132 "type": "string", 132 "type": "string",
133 "optional": true, 133 "optional": true,
134 "description": "Disk volume mount point path. The value corresponds to its Entry.fullPath in File API." 134 "description": "Disk volume mount point path. The value corresponds to its Entry.fullPath in File API."
135 }, 135 },
136 "sourcePath": { 136 "sourcePath": {
137 "type": "string", 137 "type": "string",
138 "optional": true, 138 "optional": true,
139 "description": "The path to the mounted device, archive file or netw ork resource." 139 "description": "The path to the mounted device, archive file or netw ork resource."
140 }, 140 },
141 "mountType": { 141 "volumeType": {
142 "type": "string", 142 "type": "string",
143 "optional": true, 143 "optional": true,
144 "enum": ["device", "file", "network"], 144 "enum": ["drive", "downloads", "removable", "archive"],
145 "description": "Type of the mount." 145 "description": "Type of the mounted volume."
146 }, 146 },
147 "mountCondition": { 147 "mountCondition": {
148 "type": "string", 148 "type": "string",
149 "description": "Additional data about mount, for example, that the f ilesystem is not supported." 149 "description": "Additional data about mount, for example, that the f ilesystem is not supported."
150 } 150 }
151 } 151 }
152 }, 152 },
153 { 153 {
154 "id": "MountPointSizeStats", 154 "id": "MountPointSizeStats",
155 "type": "object", 155 "type": "object",
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 }, 275 },
276 "sourcePath": { 276 "sourcePath": {
277 "type": "string", 277 "type": "string",
278 "description": "Path that has been mounted." 278 "description": "Path that has been mounted."
279 }, 279 },
280 "mountPath": { 280 "mountPath": {
281 "type": "string", 281 "type": "string",
282 "optional": true, 282 "optional": true,
283 "description": "Path that sourcePath was mounted to." 283 "description": "Path that sourcePath was mounted to."
284 }, 284 },
285 "mountType": { 285 "volumeType": {
286 "type": "string", 286 "type": "string",
287 "enum": ["device", "file", "network", "drive"], 287 "enum": ["drive", "downloads", "removable", "archive"],
288 "description": "Type of the mount." 288 "description": "Type of the mounted volume."
289 } 289 }
290 } 290 }
291 }, 291 },
292 { 292 {
293 "id": "FileTransferStatus", 293 "id": "FileTransferStatus",
294 "type": "object", 294 "type": "object",
295 "description": "Payload data for file transfer status updates.", 295 "description": "Payload data for file transfer status updates.",
296 "properties": { 296 "properties": {
297 "fileUrl": { 297 "fileUrl": {
298 "type": "string", 298 "type": "string",
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 }, 734 },
735 { 735 {
736 "name": "addMount", 736 "name": "addMount",
737 "description": "Mount a resource or a file.", 737 "description": "Mount a resource or a file.",
738 "parameters": [ 738 "parameters": [
739 { 739 {
740 "name": "source", 740 "name": "source",
741 "type": "string", 741 "type": "string",
742 "description": "Mount point source. For compressed files it is relat ive file path within external file system" 742 "description": "Mount point source. For compressed files it is relat ive file path within external file system"
743 }, 743 },
744 // TODO(hidehiko): After the refactoring, we won't need to request
745 // mounting the Drive. Then remove this param.
744 { 746 {
745 "name": "mountType", 747 "name": "volumeType",
746 "type": "string", 748 "type": "string",
747 "enum": ["device", "file", "network", "drive"], 749 "enum": ["drive", "archive"],
748 "description": "Mount point type. 'file' for compressed files" 750 "description": "Type of the mounted volume"
749 }, 751 },
750 { 752 {
751 "name": "options", 753 "name": "options",
752 "type": "object", 754 "type": "object",
753 "additionalProperties": { "type": "any" }, 755 "additionalProperties": { "type": "any" },
754 "description": "Name/value pairs for source specific options" 756 "description": "Name/value pairs for source specific options"
755 }, 757 },
756 { 758 {
757 "name": "callback", 759 "name": "callback",
758 "type": "function", 760 "type": "function",
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 }, 1320 },
1319 { 1321 {
1320 "name": "onDriveConnectionStatusChanged", 1322 "name": "onDriveConnectionStatusChanged",
1321 "type": "function", 1323 "type": "function",
1322 "description": "Fired when the active network connection state changes. The network connection state can be retrieved via 'getDriveConnectionState'.", 1324 "description": "Fired when the active network connection state changes. The network connection state can be retrieved via 'getDriveConnectionState'.",
1323 "parameters": [] 1325 "parameters": []
1324 } 1326 }
1325 ] 1327 ]
1326 } 1328 }
1327 ] 1329 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698