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

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

Issue 1023093002: Files.app: Replace job related code in EventRouter with new JobEventRoter class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update file_manager_private.js. Created 5 years, 9 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 // 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
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
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;
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698