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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager/event_router.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/file_browser_private.idl
diff --git a/chrome/common/extensions/api/file_browser_private.idl b/chrome/common/extensions/api/file_browser_private.idl
index 1ecf38bd99d3edb2df3a4449104fc22f69114da6..6341e2057213573581e14fc9d565b9e908e2f187 100644
--- a/chrome/common/extensions/api/file_browser_private.idl
+++ b/chrome/common/extensions/api/file_browser_private.idl
@@ -100,6 +100,12 @@ enum DeviceEventType {
format_fail
};
+// Drive sync error type.
+enum DriveSyncErrorType {
+ // Request to delete a file without permission.
+ delete_without_permission
+};
+
// A file task represents an action that the file manager can perform over the
// currently selected files. See
// chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details
@@ -245,6 +251,10 @@ dictionary FileTransferStatus {
double? total;
};
+dictionary DriveSyncErrorEvent {
+ DriveSyncErrorType type;
+};
+
// Payload data for copy status progress updates.
dictionary CopyProgressStatus {
// The type of the progress event.
@@ -681,5 +691,7 @@ interface Events {
static void onDriveConnectionStatusChanged();
static void onDeviceChanged(DeviceEvent event);
+
+ static void onDriveSyncError(DriveSyncErrorEvent event);
};
};
« 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