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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
93 // Device is removed. | 93 // Device is removed. |
94 removed, | 94 removed, |
95 // Format started. | 95 // Format started. |
96 format_start, | 96 format_start, |
97 // Format succeeded. | 97 // Format succeeded. |
98 format_success, | 98 format_success, |
99 // Format failed. | 99 // Format failed. |
100 format_fail | 100 format_fail |
101 }; | 101 }; |
102 | 102 |
103 // Drive sync error type. | |
104 enum DriveSyncErrorType { | |
105 // Request to delete a file without permission. | |
106 delete_without_permission | |
107 }; | |
108 | |
103 // A file task represents an action that the file manager can perform over the | 109 // A file task represents an action that the file manager can perform over the |
104 // currently selected files. See | 110 // currently selected files. See |
105 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details | 111 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details |
106 // about how file tasks are handled. | 112 // about how file tasks are handled. |
107 dictionary FileTask { | 113 dictionary FileTask { |
108 // The unique identifier of the task. | 114 // The unique identifier of the task. |
109 DOMString taskId; | 115 DOMString taskId; |
110 | 116 |
111 // Task title (ex. App name). | 117 // Task title (ex. App name). |
112 DOMString title; | 118 DOMString title; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
238 // Defines file transfer direction. | 244 // Defines file transfer direction. |
239 TransferType transferType; | 245 TransferType transferType; |
240 | 246 |
241 // Approximated completed portion of the transfer operation. | 247 // Approximated completed portion of the transfer operation. |
242 double? processed; | 248 double? processed; |
243 | 249 |
244 // Approximated total size of transfer operation. | 250 // Approximated total size of transfer operation. |
245 double? total; | 251 double? total; |
246 }; | 252 }; |
247 | 253 |
254 dictionary DriveSyncErrorEvent { | |
255 DriveSyncErrorType type; | |
benwells
2014/01/15 22:38:50
Are you envisioning more fields here? Seems like i
hirono
2014/01/16 02:34:35
Yes, I'm planning add more error types in the futu
| |
256 }; | |
257 | |
248 // Payload data for copy status progress updates. | 258 // Payload data for copy status progress updates. |
249 dictionary CopyProgressStatus { | 259 dictionary CopyProgressStatus { |
250 // The type of the progress event. | 260 // The type of the progress event. |
251 CopyProgressStatusType type; | 261 CopyProgressStatusType type; |
252 | 262 |
253 // URL for the entry currently being copied. This field is particularly useful | 263 // URL for the entry currently being copied. This field is particularly useful |
254 // when a directory copy is initiated with startCopy(). The field tells what | 264 // when a directory copy is initiated with startCopy(). The field tells what |
255 // file/directory in that directory is now being copied. | 265 // file/directory in that directory is now being copied. |
256 DOMString? sourceUrl; | 266 DOMString? sourceUrl; |
257 | 267 |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
674 | 684 |
675 static void onCopyProgress(long copyId, CopyProgressStatus status); | 685 static void onCopyProgress(long copyId, CopyProgressStatus status); |
676 | 686 |
677 static void onDirectoryChanged(FileWatchEvent event); | 687 static void onDirectoryChanged(FileWatchEvent event); |
678 | 688 |
679 static void onPreferencesChanged(); | 689 static void onPreferencesChanged(); |
680 | 690 |
681 static void onDriveConnectionStatusChanged(); | 691 static void onDriveConnectionStatusChanged(); |
682 | 692 |
683 static void onDeviceChanged(DeviceEvent event); | 693 static void onDeviceChanged(DeviceEvent event); |
694 | |
695 static void onDriveSyncError(DriveSyncErrorEvent event); | |
684 }; | 696 }; |
685 }; | 697 }; |
OLD | NEW |