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

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

Issue 137903002: Files.app: Add a drive sync error event to the fileBrowserPrivate API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // Defines file transfer direction. 231 // Defines file transfer direction.
226 TransferType transferType; 232 TransferType transferType;
227 233
228 // Approximated completed portion of the transfer operation. 234 // Approximated completed portion of the transfer operation.
229 double? processed; 235 double? processed;
230 236
231 // Approximated total size of transfer operation. 237 // Approximated total size of transfer operation.
232 double? total; 238 double? total;
233 }; 239 };
234 240
241 dictionary DriveSyncErrorEvent {
242 DriveSyncErrorType type;
243 };
244
235 // Payload data for copy status progress updates. 245 // Payload data for copy status progress updates.
236 dictionary CopyProgressStatus { 246 dictionary CopyProgressStatus {
237 // The type of the progress event. 247 // The type of the progress event.
238 CopyProgressStatusType type; 248 CopyProgressStatusType type;
239 249
240 // URL for the entry currently being copied. This field is particularly useful 250 // URL for the entry currently being copied. This field is particularly useful
241 // when a directory copy is initiated with startCopy(). The field tells what 251 // when a directory copy is initiated with startCopy(). The field tells what
242 // file/directory in that directory is now being copied. 252 // file/directory in that directory is now being copied.
243 DOMString? sourceUrl; 253 DOMString? sourceUrl;
244 254
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 671
662 static void onCopyProgress(long copyId, CopyProgressStatus status); 672 static void onCopyProgress(long copyId, CopyProgressStatus status);
663 673
664 static void onDirectoryChanged(FileWatchEvent event); 674 static void onDirectoryChanged(FileWatchEvent event);
665 675
666 static void onPreferencesChanged(); 676 static void onPreferencesChanged();
667 677
668 static void onDriveConnectionStatusChanged(); 678 static void onDriveConnectionStatusChanged();
669 679
670 static void onDeviceChanged(DeviceEvent event); 680 static void onDeviceChanged(DeviceEvent event);
681
682 static void onDriveSyncError(DriveSyncErrorEvent event);
671 }; 683 };
672 }; 684 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698