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

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: 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
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 0f398e7cd9b86c8cb5c6a5a288108e09d49ffcfb..aa029c2058ee30214b5719e3cfa09c9d24c7d5c6 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
@@ -232,6 +238,10 @@ dictionary FileTransferStatus {
double? total;
};
+dictionary DriveSyncErrorEvent {
+ DriveSyncErrorType type;
+};
+
// Payload data for copy status progress updates.
dictionary CopyProgressStatus {
// The type of the progress event.
@@ -668,5 +678,7 @@ interface Events {
static void onDriveConnectionStatusChanged();
static void onDeviceChanged(DeviceEvent event);
+
+ static void onDriveSyncError(DriveSyncErrorEvent event);
};
};

Powered by Google App Engine
This is Rietveld 408576698