Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / api / file_browser_private.idl
index e8b4256..a36a0fb 100644 (file)
@@ -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();
 };
 };