Chromium Code Reviews| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 error_mount_program_failed, | 42 error_mount_program_failed, |
| 43 error_invalid_device_path, | 43 error_invalid_device_path, |
| 44 error_unknown_filesystem, | 44 error_unknown_filesystem, |
| 45 error_unsupported_filesystem, | 45 error_unsupported_filesystem, |
| 46 error_invalid_archive, | 46 error_invalid_archive, |
| 47 error_authentication, | 47 error_authentication, |
| 48 error_path_unmounted | 48 error_path_unmounted |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 // File transfer progress state. | 51 // File transfer progress state. |
| 52 enum TransferState { added, started, in_progress, completed, failed }; | 52 enum TransferState { in_progress, completed, failed }; |
| 53 | 53 |
| 54 // Defines file transfer direction. | 54 // Defines file transfer direction. |
| 55 enum TransferType { upload, download }; | 55 enum TransferType { upload, download }; |
| 56 | 56 |
| 57 // The type of the progress event. | 57 // The type of the progress event. |
| 58 enum CopyProgressStatusType { | 58 enum CopyProgressStatusType { |
| 59 // "begin_copy_entry" is fired for each entry (file or directory) before | 59 // "begin_copy_entry" is fired for each entry (file or directory) before |
| 60 // starting the copy operation. | 60 // starting the copy operation. |
| 61 begin_copy_entry, | 61 begin_copy_entry, |
| 62 | 62 |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 345 // URL of file that is being transfered. | 345 // URL of file that is being transfered. |
| 346 DOMString fileUrl; | 346 DOMString fileUrl; |
| 347 | 347 |
| 348 // File transfer progress state. | 348 // File transfer progress state. |
| 349 TransferState transferState; | 349 TransferState transferState; |
| 350 | 350 |
| 351 // Defines file transfer direction. | 351 // Defines file transfer direction. |
| 352 TransferType transferType; | 352 TransferType transferType; |
| 353 | 353 |
| 354 // Approximated completed portion of the transfer operation. | 354 // Approximated completed portion of the transfer operation. |
| 355 double? processed; | 355 double processed; |
|
fukino
2015/03/20 07:04:25
nit: could you update the file_manager_private.js
hirono
2015/03/20 08:05:13
Done.
| |
| 356 | 356 |
| 357 // Approximated total size of transfer operation. | 357 // Approximated total size of transfer operation. |
| 358 double? total; | 358 double total; |
| 359 | 359 |
| 360 // Total number of jobs. | 360 // Total number of jobs. |
| 361 long num_total_jobs; | 361 long num_total_jobs; |
| 362 }; | 362 }; |
| 363 | 363 |
| 364 // Error during the drive sync. | 364 // Error during the drive sync. |
| 365 dictionary DriveSyncErrorEvent { | 365 dictionary DriveSyncErrorEvent { |
| 366 // Error type. | 366 // Error type. |
| 367 DriveSyncErrorType type; | 367 DriveSyncErrorType type; |
| 368 | 368 |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 892 | 892 |
| 893 static void onPreferencesChanged(); | 893 static void onPreferencesChanged(); |
| 894 | 894 |
| 895 static void onDriveConnectionStatusChanged(); | 895 static void onDriveConnectionStatusChanged(); |
| 896 | 896 |
| 897 static void onDeviceChanged(DeviceEvent event); | 897 static void onDeviceChanged(DeviceEvent event); |
| 898 | 898 |
| 899 static void onDriveSyncError(DriveSyncErrorEvent event); | 899 static void onDriveSyncError(DriveSyncErrorEvent event); |
| 900 }; | 900 }; |
| 901 }; | 901 }; |
| OLD | NEW |