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. |
11 enum VolumeType { drive, downloads, removable, archive, cloud_device, provided, | 11 enum VolumeType { drive, downloads, removable, archive, provided, mtp, |
12 mtp, testing }; | 12 testing }; |
13 | 13 |
14 // Device type. Available if this is removable volume. | 14 // Device type. Available if this is removable volume. |
15 enum DeviceType { usb, sd, optical, mobile, unknown }; | 15 enum DeviceType { usb, sd, optical, mobile, unknown }; |
16 | 16 |
17 // Additional data about mount, for example, that the filesystem is not | 17 // Additional data about mount, for example, that the filesystem is not |
18 // supported. | 18 // supported. |
19 enum MountCondition { unknown, unsupported }; | 19 enum MountCondition { unknown, unsupported }; |
20 | 20 |
21 // Additional information of the context the volume was mounted. | 21 // Additional information of the context the volume was mounted. |
22 enum MountContext { user, auto }; | 22 enum MountContext { user, auto }; |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 | 518 |
519 // |result| Hash containing the string assets. | 519 // |result| Hash containing the string assets. |
520 callback GetStringsCallback = void(object result); | 520 callback GetStringsCallback = void(object result); |
521 | 521 |
522 // |success| True when file watch is successfully added. | 522 // |success| True when file watch is successfully added. |
523 callback AddFileWatchCallback = void(optional boolean success); | 523 callback AddFileWatchCallback = void(optional boolean success); |
524 | 524 |
525 // |success| True when file watch is successfully removed. | 525 // |success| True when file watch is successfully removed. |
526 callback RemoveFileWatchCallback = void(optional boolean success); | 526 callback RemoveFileWatchCallback = void(optional boolean success); |
527 | 527 |
528 // |fileSystem| A DOMFileSystem instance for local file system access. null if | |
529 // the caller has no appropriate permissions. | |
530 callback RequestFileSystemCallback = void(optional object fileSystem); | |
531 | |
532 // |entryProperties| A dictionary containing properties of the requested | 528 // |entryProperties| A dictionary containing properties of the requested |
533 // entries. | 529 // entries. |
534 callback GetEntryPropertiesCallback = | 530 callback GetEntryPropertiesCallback = |
535 void(EntryProperties[] entryProperties); | 531 void(EntryProperties[] entryProperties); |
536 | 532 |
537 // |sourcePath| Source path of the mount. | 533 // |sourcePath| Source path of the mount. |
538 callback AddMountCallback = void(DOMString sourcePath); | 534 callback AddMountCallback = void(DOMString sourcePath); |
539 | 535 |
540 // |volumeMetadataList| The list of VolumeMetadata representing mounted volumes. | 536 // |volumeMetadataList| The list of VolumeMetadata representing mounted volumes. |
541 callback GetVolumeMetadataListCallback = | 537 callback GetVolumeMetadataListCallback = |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 | 884 |
889 static void onPreferencesChanged(); | 885 static void onPreferencesChanged(); |
890 | 886 |
891 static void onDriveConnectionStatusChanged(); | 887 static void onDriveConnectionStatusChanged(); |
892 | 888 |
893 static void onDeviceChanged(DeviceEvent event); | 889 static void onDeviceChanged(DeviceEvent event); |
894 | 890 |
895 static void onDriveSyncError(DriveSyncErrorEvent event); | 891 static void onDriveSyncError(DriveSyncErrorEvent event); |
896 }; | 892 }; |
897 }; | 893 }; |
OLD | NEW |