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

Side by Side Diff: ui/file_manager/file_manager/foreground/js/import_controller.js

Issue 1010163002: Files.app: Fix closure error which will raised by the updated compiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Define FakeEntry record type and use it. Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Namespace 5 // Namespace
6 var importer = importer || {}; 6 var importer = importer || {};
7 7
8 /** @private @enum {string} */ 8 /** @private @enum {string} */
9 importer.ActivityState = { 9 importer.ActivityState = {
10 READY: 'ready', 10 READY: 'ready',
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 importer.ControllerEnvironment = function() {}; 873 importer.ControllerEnvironment = function() {};
874 874
875 /** 875 /**
876 * Returns the current file selection, if any. May be empty. 876 * Returns the current file selection, if any. May be empty.
877 * @return {!Array.<!Entry>} 877 * @return {!Array.<!Entry>}
878 */ 878 */
879 importer.ControllerEnvironment.prototype.getSelection; 879 importer.ControllerEnvironment.prototype.getSelection;
880 880
881 /** 881 /**
882 * Returns the directory entry for the current directory. 882 * Returns the directory entry for the current directory.
883 * @return {DirectoryEntry} 883 * @return {DirectoryEntry|FakeEntry}
884 */ 884 */
885 importer.ControllerEnvironment.prototype.getCurrentDirectory; 885 importer.ControllerEnvironment.prototype.getCurrentDirectory;
886 886
887 /** 887 /**
888 * @param {!DirectoryEntry} entry 888 * @param {!DirectoryEntry} entry
889 */ 889 */
890 importer.ControllerEnvironment.prototype.setCurrentDirectory; 890 importer.ControllerEnvironment.prototype.setCurrentDirectory;
891 891
892 /** 892 /**
893 * Returns true if the Drive mount is present. 893 * Returns true if the Drive mount is present.
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 .catch(importer.getLogger().catcher('import-destination-provision')); 1126 .catch(importer.getLogger().catcher('import-destination-provision'));
1127 }; 1127 };
1128 1128
1129 /** @override */ 1129 /** @override */
1130 importer.RuntimeControllerEnvironment.prototype.showImportDestination = 1130 importer.RuntimeControllerEnvironment.prototype.showImportDestination =
1131 function(date) { 1131 function(date) {
1132 return this.getImportDestination(date) 1132 return this.getImportDestination(date)
1133 .then(this.revealDirectory_.bind(this)) 1133 .then(this.revealDirectory_.bind(this))
1134 .catch(importer.getLogger().catcher('import-destination-reveal')); 1134 .catch(importer.getLogger().catcher('import-destination-reveal'));
1135 }; 1135 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698