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 // fileBrowserPrivate API. | 5 // fileBrowserPrivate 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_browser_pr
ivate_api_functions.h"] | 8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_browser_pr
ivate_api_functions.h"] |
9 namespace fileBrowserPrivate { | 9 namespace fileBrowserPrivate { |
10 // Type of the mounted volume. | 10 // Type of the mounted volume. |
(...skipping 28 matching lines...) Expand all Loading... |
39 error_mount_program_failed, | 39 error_mount_program_failed, |
40 error_invalid_device_path, | 40 error_invalid_device_path, |
41 error_unknown_filesystem, | 41 error_unknown_filesystem, |
42 error_unsupported_filesystem, | 42 error_unsupported_filesystem, |
43 error_invalid_archive, | 43 error_invalid_archive, |
44 error_authentication, | 44 error_authentication, |
45 error_path_unmounted | 45 error_path_unmounted |
46 }; | 46 }; |
47 | 47 |
48 // File transfer progress state. | 48 // File transfer progress state. |
49 enum TransferState { started, in_progress, completed, failed }; | 49 enum TransferState { added, started, in_progress, completed, failed }; |
50 | 50 |
51 // Defines file transfer direction. | 51 // Defines file transfer direction. |
52 enum TransferType { upload, download }; | 52 enum TransferType { upload, download }; |
53 | 53 |
54 // The type of the progress event. | 54 // The type of the progress event. |
55 enum CopyProgressStatusType { | 55 enum CopyProgressStatusType { |
56 // "begin_copy_entry" is fired for each entry (file or directory) before | 56 // "begin_copy_entry" is fired for each entry (file or directory) before |
57 // starting the copy operation. | 57 // starting the copy operation. |
58 begin_copy_entry, | 58 begin_copy_entry, |
59 | 59 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 TransferState transferState; | 313 TransferState transferState; |
314 | 314 |
315 // Defines file transfer direction. | 315 // Defines file transfer direction. |
316 TransferType transferType; | 316 TransferType transferType; |
317 | 317 |
318 // Approximated completed portion of the transfer operation. | 318 // Approximated completed portion of the transfer operation. |
319 double? processed; | 319 double? processed; |
320 | 320 |
321 // Approximated total size of transfer operation. | 321 // Approximated total size of transfer operation. |
322 double? total; | 322 double? total; |
| 323 |
| 324 // Total number of jobs. |
| 325 long num_total_jobs; |
323 }; | 326 }; |
324 | 327 |
325 // Error during the drive sync. | 328 // Error during the drive sync. |
326 dictionary DriveSyncErrorEvent { | 329 dictionary DriveSyncErrorEvent { |
327 // Error type. | 330 // Error type. |
328 DriveSyncErrorType type; | 331 DriveSyncErrorType type; |
329 | 332 |
330 // File URL of the entry that the error happens to. | 333 // File URL of the entry that the error happens to. |
331 DOMString fileUrl; | 334 DOMString fileUrl; |
332 }; | 335 }; |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 | 816 |
814 static void onPreferencesChanged(); | 817 static void onPreferencesChanged(); |
815 | 818 |
816 static void onDriveConnectionStatusChanged(); | 819 static void onDriveConnectionStatusChanged(); |
817 | 820 |
818 static void onDeviceChanged(DeviceEvent event); | 821 static void onDeviceChanged(DeviceEvent event); |
819 | 822 |
820 static void onDriveSyncError(DriveSyncErrorEvent event); | 823 static void onDriveSyncError(DriveSyncErrorEvent event); |
821 }; | 824 }; |
822 }; | 825 }; |
OLD | NEW |