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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 TransferState transferState; | 307 TransferState transferState; |
308 | 308 |
309 // Defines file transfer direction. | 309 // Defines file transfer direction. |
310 TransferType transferType; | 310 TransferType transferType; |
311 | 311 |
312 // Approximated completed portion of the transfer operation. | 312 // Approximated completed portion of the transfer operation. |
313 double? processed; | 313 double? processed; |
314 | 314 |
315 // Approximated total size of transfer operation. | 315 // Approximated total size of transfer operation. |
316 double? total; | 316 double? total; |
| 317 |
| 318 // Total number of jobs. |
| 319 long num_total_jobs; |
317 }; | 320 }; |
318 | 321 |
319 // Error during the drive sync. | 322 // Error during the drive sync. |
320 dictionary DriveSyncErrorEvent { | 323 dictionary DriveSyncErrorEvent { |
321 // Error type. | 324 // Error type. |
322 DriveSyncErrorType type; | 325 DriveSyncErrorType type; |
323 | 326 |
324 // File URL of the entry that the error happens to. | 327 // File URL of the entry that the error happens to. |
325 DOMString fileUrl; | 328 DOMString fileUrl; |
326 }; | 329 }; |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 static void onDriveSyncError(DriveSyncErrorEvent event); | 816 static void onDriveSyncError(DriveSyncErrorEvent event); |
814 | 817 |
815 // Dispatched when a profile is added. | 818 // Dispatched when a profile is added. |
816 static void onProfileAdded(); | 819 static void onProfileAdded(); |
817 | 820 |
818 // Dispatched when any window moves another desktop. | 821 // Dispatched when any window moves another desktop. |
819 // TODO(hirono): Add information which window is moved. | 822 // TODO(hirono): Add information which window is moved. |
820 static void onDesktopChanged(); | 823 static void onDesktopChanged(); |
821 }; | 824 }; |
822 }; | 825 }; |
OLD | NEW |