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

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

Issue 2883263002: Stop foreground depending on background in gyp v2 (Closed)
Patch Set: Removed unused TaskQueue and values in media_import_handler. 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/media_import_handler.js
diff --git a/ui/file_manager/externs/background/media_import_handler.js b/ui/file_manager/externs/background/media_import_handler.js
new file mode 100644
index 0000000000000000000000000000000000000000..91a45c323f681277415873bbd842f3b2c48b5d7d
--- /dev/null
+++ b/ui/file_manager/externs/background/media_import_handler.js
@@ -0,0 +1,49 @@
+// 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.
+
+// Namespace
+var importer;
+
+/**
+ * Interface providing access to information about active import processes.
+ *
+ * @interface
+ */
+importer.ImportRunner = function() {};
fukino 2017/05/17 10:49:19 Could you add an extern file for importer.ImportRu
oka 2017/05/17 14:39:29 Done.
+
+/**
+ * Imports all media identified by scanResult.
+ *
+ * @param {!importer.ScanResult} scanResult
+ * @param {!importer.Destination} destination
+ * @param {!Promise<!DirectoryEntry>} directoryPromise
+ *
+ * @return {!importer.MediaImportHandler.ImportTask} The resulting import task.
+ */
+importer.ImportRunner.prototype.importFromScanResult;
+
+importer.MediaImportHandler;
+
+/**
+ * Note that this isn't an actual FileOperationManager.Task. It currently uses
+ * the FileOperationManager (and thus *spawns* an associated
+ * FileOperationManager.CopyTask) but this is a temporary state of affairs.
+ *
+ * @constructor
+ * @struct
+ */
+importer.MediaImportHandler.ImportTask = function() {};
+
+/** @struct */
+importer.MediaImportHandler.ImportTask.prototype = {
+ /** @return {!Promise} Resolves when task
+ is complete, or cancelled, rejects on error. */
+ get whenFinished() {}
+};
+
+/**
+ * Request cancellation of this task. An update will be sent to observers once
+ * the task is actually cancelled.
+ */
+importer.MediaImportHandler.ImportTask.prototype.requestCancel = function() {};

Powered by Google App Engine
This is Rietveld 408576698