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
// 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);
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|
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.
// Moves the window to other user's desktop.
static void visitDesktop(DOMString profileId,
- SimpleCallback callback);
+ optional SimpleCallback callback);
};
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();
};
};