OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // fileManagerPrivate API. | 5 // fileManagerPrivate API. |
6 // This is a private API used by the file browser of ChromeOS. | 6 // This is a private API used by the file browser of ChromeOS. |
7 [platforms=("chromeos"), | 7 [platforms=("chromeos"), |
8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_manager_pr
ivate_api_functions.h"] | 8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_manager_pr
ivate_api_functions.h"] |
9 namespace fileManagerPrivate { | 9 namespace fileManagerPrivate { |
10 // Type of the mounted volume. | 10 // Type of the mounted volume. |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 shared, | 166 shared, |
167 externalFileUrl | 167 externalFileUrl |
168 }; | 168 }; |
169 | 169 |
170 // Entry property visibility for setEntryTag(); | 170 // Entry property visibility for setEntryTag(); |
171 enum EntryTagVisibility { | 171 enum EntryTagVisibility { |
172 private, | 172 private, |
173 public | 173 public |
174 }; | 174 }; |
175 | 175 |
176 // Source of the volume data. | |
177 enum VolumeSource { | |
178 // Represents a mounted file. In most cases, simply an archive. | |
179 file, | |
180 | |
181 // Representing a device, eg. an MTP device. Also, used for Downloads as it's | |
182 // containing files stored on the Chrome OS device. | |
183 device, | |
184 | |
185 // Used for volumes which contain files on a remote machine, eg. Drive or | |
186 // cloud services implemented via the File System Provider API. | |
187 network | |
188 }; | |
189 | |
190 // A file task represents an action that the file manager can perform over the | 176 // A file task represents an action that the file manager can perform over the |
191 // currently selected files. See | 177 // currently selected files. See |
192 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details | 178 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details |
193 // about how file tasks are handled. | 179 // about how file tasks are handled. |
194 dictionary FileTask { | 180 dictionary FileTask { |
195 // The unique identifier of the task. | 181 // The unique identifier of the task. |
196 DOMString taskId; | 182 DOMString taskId; |
197 | 183 |
198 // Task title (ex. App name). | 184 // Task title (ex. App name). |
199 DOMString title; | 185 DOMString title; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 dictionary VolumeMetadata { | 279 dictionary VolumeMetadata { |
294 // ID of the disk volume. | 280 // ID of the disk volume. |
295 DOMString volumeId; | 281 DOMString volumeId; |
296 | 282 |
297 // Id the provided file system (for provided file systems). | 283 // Id the provided file system (for provided file systems). |
298 DOMString? fileSystemId; | 284 DOMString? fileSystemId; |
299 | 285 |
300 // Extension providing this volume (for provided file systems). | 286 // Extension providing this volume (for provided file systems). |
301 DOMString? extensionId; | 287 DOMString? extensionId; |
302 | 288 |
303 // Source of the volume data. | |
304 VolumeSource? volumeSource; | |
305 | |
306 // Label of the volume (if available). | 289 // Label of the volume (if available). |
307 DOMString? volumeLabel; | 290 DOMString? volumeLabel; |
308 | 291 |
309 // Description of the profile where the volume belongs. | 292 // Description of the profile where the volume belongs. |
310 // TODO(hirono): Remove the property because of the design change of | 293 // TODO(hirono): Remove the property because of the design change of |
311 // multi-profile support. | 294 // multi-profile support. |
312 ProfileInfo profile; | 295 ProfileInfo profile; |
313 | 296 |
314 // The path to the mounted device, archive file or network resource. | 297 // The path to the mounted device, archive file or network resource. |
315 DOMString? sourcePath; | 298 DOMString? sourcePath; |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 | 503 |
521 // Describes an installed providing extension. | 504 // Describes an installed providing extension. |
522 dictionary ProvidingExtension { | 505 dictionary ProvidingExtension { |
523 // ID of the providing extension. | 506 // ID of the providing extension. |
524 DOMString extensionId; | 507 DOMString extensionId; |
525 | 508 |
526 // Name of the providing extension. | 509 // Name of the providing extension. |
527 DOMString name; | 510 DOMString name; |
528 | 511 |
529 // Whether supports configuration dialog. | 512 // Whether supports configuration dialog. |
530 boolean canConfigure; | 513 boolean configurable; |
531 | 514 |
532 // Whether supports adding new instances. | 515 // Whether supports mounting multiple instances. |
533 boolean canAdd; | 516 boolean multipleMounts; |
| 517 |
| 518 // Source of file systems' data. |
| 519 manifestTypes.FileSystemProviderSource source; |
534 }; | 520 }; |
535 | 521 |
536 // Callback that does not take arguments. | 522 // Callback that does not take arguments. |
537 callback SimpleCallback = void(); | 523 callback SimpleCallback = void(); |
538 | 524 |
539 // |result| Boolean result returned by the invoked function. | 525 // |result| Boolean result returned by the invoked function. |
540 callback BooleanCallback = void(boolean result); | 526 callback BooleanCallback = void(boolean result); |
541 | 527 |
542 // |result| Result of the task execution. | 528 // |result| Result of the task execution. |
543 callback ExecuteTaskCallback = void(TaskResult result); | 529 callback ExecuteTaskCallback = void(TaskResult result); |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
932 | 918 |
933 static void onPreferencesChanged(); | 919 static void onPreferencesChanged(); |
934 | 920 |
935 static void onDriveConnectionStatusChanged(); | 921 static void onDriveConnectionStatusChanged(); |
936 | 922 |
937 static void onDeviceChanged(DeviceEvent event); | 923 static void onDeviceChanged(DeviceEvent event); |
938 | 924 |
939 static void onDriveSyncError(DriveSyncErrorEvent event); | 925 static void onDriveSyncError(DriveSyncErrorEvent event); |
940 }; | 926 }; |
941 }; | 927 }; |
OLD | NEW |