Index: ui/file_manager/file_manager/foreground/js/file_manager.js |
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js |
index 2c35680648eb501b63292c5d5dc2a3e93d3b7009..a812d5a3480727b96d8773bdae4c521fe12fbe20 100644 |
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js |
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js |
@@ -8,6 +8,7 @@ |
* FileManager objects encapsulate the functionality of the file selector |
* dialogs, as well as the full screen file manager application. |
* |
+ * @implements {CommandHandlerDeps} |
* @constructor |
* @struct |
*/ |
@@ -336,6 +337,12 @@ FileManager.prototype = /** @struct */ { |
return this.directoryModel_; |
}, |
/** |
+ * @return {DirectoryTreeNamingController} |
+ */ |
+ get directoryTreeNamingController() { |
+ return this.directoryTreeNamingController_; |
+ }, |
+ /** |
* @return {!FileFilter} |
*/ |
get fileFilter() { |
@@ -372,6 +379,12 @@ FileManager.prototype = /** @struct */ { |
return this.metadataModel_; |
}, |
/** |
+ * @return {FileSelectionHandler} |
+ */ |
+ get selectionHandler() { |
+ return this.selectionHandler_; |
+ }, |
+ /** |
* @return {DirectoryTree} |
*/ |
get directoryTree() { |
@@ -1094,13 +1107,6 @@ FileManager.prototype = /** @struct */ { |
}; |
/** |
- * @return {DirectoryTreeNamingController} |
- */ |
- FileManager.prototype.getDirectoryTreeNamingController = function() { |
- return this.directoryTreeNamingController_; |
- }; |
- |
- /** |
* @private |
*/ |
FileManager.prototype.initDirectoryTree_ = function() { |
@@ -1370,40 +1376,6 @@ FileManager.prototype = /** @struct */ { |
}; |
/** |
- * TODO(mtomasz): Move this to a utility function working on the root type. |
- * @return {boolean} True if the current directory content is from Google |
- * Drive. |
- */ |
- FileManager.prototype.isOnDrive = function() { |
- return this.directoryModel_.isOnDrive(); |
- }; |
- |
- /** |
- * @return {boolean} True if the current directory content is from MTP volume. |
- */ |
- FileManager.prototype.isOnMTP = function() { |
- return this.directoryModel_.isOnMTP(); |
- }; |
- |
- /** |
- * Check if the drive-related setting items should be shown on currently |
- * displayed gear menu. |
- * @return {boolean} True if those setting items should be shown. |
- */ |
- FileManager.prototype.shouldShowDriveSettings = function() { |
- return this.isOnDrive(); |
- }; |
- |
- /** |
- * Tells whether the current directory is read only. |
- * TODO(mtomasz): Remove and use EntryLocation directly. |
- * @return {boolean} True if read only, false otherwise. |
- */ |
- FileManager.prototype.isOnReadonlyDirectory = function() { |
- return this.directoryModel_.isReadOnly(); |
- }; |
- |
- /** |
* Return DirectoryEntry of the current directory or null. |
* @return {DirectoryEntry|FakeEntry} DirectoryEntry of the current directory. |
* Returns null if the directory model is not ready or the current |