Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: chrome/common/extensions/api/file_browser_private.idl

Issue 507293002: Enrich fileBrowserPrivate.onFileTransfersUpdated event to support displaying total number of jobs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 TransferState transferState; 315 TransferState transferState;
316 316
317 // Defines file transfer direction. 317 // Defines file transfer direction.
318 TransferType transferType; 318 TransferType transferType;
319 319
320 // Approximated completed portion of the transfer operation. 320 // Approximated completed portion of the transfer operation.
321 double? processed; 321 double? processed;
322 322
323 // Approximated total size of transfer operation. 323 // Approximated total size of transfer operation.
324 double? total; 324 double? total;
325
326 // Total number of jobs.
327 double? num_total_jobs;
hirono 2014/08/27 08:37:20 The reason why we use double for number of bytes i
iseki 2014/08/28 07:13:32 Done.
325 }; 328 };
326 329
327 // Error during the drive sync. 330 // Error during the drive sync.
328 dictionary DriveSyncErrorEvent { 331 dictionary DriveSyncErrorEvent {
329 // Error type. 332 // Error type.
330 DriveSyncErrorType type; 333 DriveSyncErrorType type;
331 334
332 // File URL of the entry that the error happens to. 335 // File URL of the entry that the error happens to.
333 DOMString fileUrl; 336 DOMString fileUrl;
334 }; 337 };
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 static void onDriveSyncError(DriveSyncErrorEvent event); 824 static void onDriveSyncError(DriveSyncErrorEvent event);
822 825
823 // Dispatched when a profile is added. 826 // Dispatched when a profile is added.
824 static void onProfileAdded(); 827 static void onProfileAdded();
825 828
826 // Dispatched when any window moves another desktop. 829 // Dispatched when any window moves another desktop.
827 // TODO(hirono): Add information which window is moved. 830 // TODO(hirono): Add information which window is moved.
828 static void onDesktopChanged(); 831 static void onDesktopChanged();
829 }; 832 };
830 }; 833 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698