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

Unified Diff: ui/file_manager/externs/background/file_operation_manager.js

Issue 2883263002: Stop foreground depending on background in gyp v2 (Closed)
Patch Set: Format. Created 3 years, 7 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: ui/file_manager/externs/background/file_operation_manager.js
diff --git a/ui/file_manager/externs/background/file_operation_manager.js b/ui/file_manager/externs/background/file_operation_manager.js
new file mode 100644
index 0000000000000000000000000000000000000000..f96b5d74005f78e2c82f40fe8ff3a939107da5b3
--- /dev/null
+++ b/ui/file_manager/externs/background/file_operation_manager.js
@@ -0,0 +1,91 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @constructor
+ * @struct
+ * @extends {cr.EventTarget}
+ */
+function FileOperationManager() {}
+
+/**
+ * Adds an event listener for the tasks.
+ * @param {string} type The name of the event.
+ * @param {EventListenerType} handler The handler for the event. This is called
+ * when the event is dispatched.
+ * @override
+ */
+FileOperationManager.prototype.addEventListener = function(type, handler) {};
+
+/**
+ * Removes an event listener for the tasks.
+ * @param {string} type The name of the event.
+ * @param {EventListenerType} handler The handler to be removed.
+ * @override
+ */
+FileOperationManager.prototype.removeEventListener = function(type, handler) {};
+
+/**
+ * Says if there are any tasks in the queue.
+ * @return {boolean} True, if there are any tasks.
+ */
+FileOperationManager.prototype.hasQueuedTasks = function() {};
+
+/**
+ * Requests the specified task to be canceled.
+ * @param {string} taskId ID of task to be canceled.
+ */
+FileOperationManager.prototype.requestTaskCancel = function(taskId) {};
+
+/**
+ * Filters the entry in the same directory
+ *
+ * @param {Array<Entry>} sourceEntries Entries of the source files.
+ * @param {DirectoryEntry|FakeEntry} targetEntry The destination entry of the
+ * target directory.
+ * @param {boolean} isMove True if the operation is "move", otherwise (i.e.
+ * if the operation is "copy") false.
+ * @return {Promise} Promise fulfilled with the filtered entry. This is not
+ * rejected.
+ */
+FileOperationManager.prototype.filterSameDirectoryEntry = function(
+ sourceEntries, targetEntry, isMove) {};
+
+/**
+ * Kick off pasting.
+ *
+ * @param {Array<Entry>} sourceEntries Entries of the source files.
+ * @param {DirectoryEntry} targetEntry The destination entry of the target
+ * directory.
+ * @param {boolean} isMove True if the operation is "move", otherwise (i.e.
+ * if the operation is "copy") false.
+ * @param {string=} opt_taskId If the corresponding item has already created
+ * at another places, we need to specify the ID of the item. If the
+ * item is not created, FileOperationManager generates new ID.
+ */
+FileOperationManager.prototype.paste = function(
+ sourceEntries, targetEntry, isMove, opt_taskId) {};
+
+/**
+ * Schedules the files deletion.
+ *
+ * @param {Array<Entry>} entries The entries.
+ */
+FileOperationManager.prototype.deleteEntries = function(entries) {};
+
+/**
+ * Creates a zip file for the selection of files.
+ *
+ * @param {!DirectoryEntry} dirEntry The directory containing the selection.
+ * @param {!Array<!Entry>} selectionEntries The selected entries.
+ */
+FileOperationManager.prototype.zipSelection = function(
+ dirEntry, selectionEntries) {};
+
+/**
+ * Generates new task ID.
+ *
+ * @return {string} New task ID.
+ */
+FileOperationManager.prototype.generateTaskId = function() {};
« no previous file with comments | « ui/file_manager/externs/background/drive_sync_handler.js ('k') | ui/file_manager/externs/background/import_runner.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698