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

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: Fixed typo. 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
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager/event_router.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
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
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 };
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager/event_router.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698