X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fcommon%2Fextensions%2Fapi%2Ffile_browser_private.idl;h=a36a0fba8be1412b781886679adf3b4947b851a5;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=e8b42564ad1ebd90c102d68513b78b78b0bade38;hpb=d482483c7e386df3f789b1cb1845b73bfcaae2bd;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/common/extensions/api/file_browser_private.idl b/src/chrome/common/extensions/api/file_browser_private.idl index e8b4256..a36a0fb 100644 --- a/src/chrome/common/extensions/api/file_browser_private.idl +++ b/src/chrome/common/extensions/api/file_browser_private.idl @@ -111,6 +111,19 @@ enum DriveSyncErrorType { misc }; +// Result of task execution. +enum TaskResult { + // The task execution succeeded and a new window/tab was opened. + opened, + // The task execution succeeded and the message was sent to the proper + // extension. + message_sent, + // The task execution failed. + failed, + // No URL is specified. + empty +}; + // 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 @@ -392,8 +405,8 @@ dictionary DeviceEvent { // Callback that does not take arguments. callback SimpleCallback = void(); -// |success| True of task execution was successfully initiated. -callback ExecuteTaskCallback = void(optional boolean success); +// |result| Result of the task execution. +callback ExecuteTaskCallback = void(TaskResult result); // |tasks| The list of matched file URL patterns for this task. callback GetFileTasksCallback = void(FileTask[] tasks); @@ -585,8 +598,8 @@ interface Functions { static void addMount(DOMString source, AddMountCallback callback); // Unmounts a mounted resource. - // |mountPath| A path of the mount. - static void removeMount(DOMString mountPath); + // |volumeId| An ID of the volume. + static void removeMount(DOMString volumeId); // Get the list of mounted volumes. // |callback| @@ -615,9 +628,9 @@ interface Functions { static void cancelCopy(long copyId, optional SimpleCallback callback); // Retrieves total and remaining size of a mount point. - // |mountPath| Mount point path. + // |volumeId| ID of the volume to be checked. // |callback| - static void getSizeStats(DOMString mountPath, GetSizeStatsCallback callback); + static void getSizeStats(DOMString volumeId, GetSizeStatsCallback callback); // Formats a mounted volume. // |volumeId| ID of the volume to be formatted. @@ -699,7 +712,7 @@ interface Functions { // Moves the window to other user's desktop. static void visitDesktop(DOMString profileId, - SimpleCallback callback); + optional SimpleCallback callback); }; interface Events { @@ -718,5 +731,12 @@ interface Events { static void onDeviceChanged(DeviceEvent event); static void onDriveSyncError(DriveSyncErrorEvent event); + + // Dispatched when a profile is added. + static void onProfileAdded(); + + // Dispatched when any window moves another desktop. + // TODO(hirono): Add information which window is moved. + static void onDesktopChanged(); }; };