diff options
author | hirono@chromium.org <hirono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-16 06:17:53 +0000 |
---|---|---|
committer | hirono@chromium.org <hirono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-16 06:17:53 +0000 |
commit | a6e126117e52b974c9f7c52544280f5edd467acb (patch) | |
tree | 162c57a96983cc21e7282a99e807b5e9fe709e83 /chrome/common | |
parent | e2c517f2301e9e92a573cad0282d9841827dfa51 (diff) | |
download | chromium_src-a6e126117e52b974c9f7c52544280f5edd467acb.zip chromium_src-a6e126117e52b974c9f7c52544280f5edd467acb.tar.gz chromium_src-a6e126117e52b974c9f7c52544280f5edd467acb.tar.bz2 |
Files.app: Add a drive sync error event to the fileBrowserPrivate API.
Previously no API is provided to report drive sync errors to JavaScript side.
This CL adds the API and colllecs erros by using OperationObserver.
BUG=260510
Review URL: https://codereview.chromium.org/137903002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/extensions/api/file_browser_private.idl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/file_browser_private.idl b/chrome/common/extensions/api/file_browser_private.idl index 1ecf38b..6341e20 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); }; }; |