| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |