| Index: ui/file_manager/file_manager/common/js/mock_entry.js
|
| diff --git a/ui/file_manager/file_manager/common/js/mock_entry.js b/ui/file_manager/file_manager/common/js/mock_entry.js
|
| index 92d629df9aa549334ea7b1bad36e502a7e861d8f..4c4737d62957531c2b50837a0110606a2785889c 100644
|
| --- a/ui/file_manager/file_manager/common/js/mock_entry.js
|
| +++ b/ui/file_manager/file_manager/common/js/mock_entry.js
|
| @@ -13,7 +13,7 @@ function joinPath(a, b) {
|
| }
|
|
|
| /**
|
| - * Mock class for DOMFileSystem.
|
| + * Mock class for FileSystem.
|
| *
|
| * @param {string} volumeId Volume ID.
|
| * @param {string=} opt_rootURL URL string of root which is used in
|
| @@ -24,7 +24,7 @@ function MockFileSystem(volumeId, opt_rootURL) {
|
| /** @type {string} */
|
| this.name = volumeId;
|
|
|
| - /** @type {!Object<!Entry>} */
|
| + /** @type {!Object<!FileSystemEntry>} */
|
| this.entries = {};
|
| this.entries['/'] = new MockDirectoryEntry(this, '/');
|
|
|
| @@ -60,8 +60,8 @@ MockFileSystem.prototype.populate = function(paths) {
|
|
|
| /**
|
| * Returns all children of the supplied directoryEntry.
|
| - * @param {!DirectoryEntry} directoryEntry
|
| - * @return {!Array<!Entry>}
|
| + * @param {!FileSystemDirectoryEntry} directoryEntry
|
| + * @return {!Array<!FileSystemEntry>}
|
| * @private
|
| */
|
| MockFileSystem.prototype.findChildren_ = function(directory) {
|
| @@ -199,11 +199,11 @@ MockEntry.prototype.clone = function(fullpath, opt_filesystem) {
|
| };
|
|
|
| /**
|
| - * Mock class for FileEntry.
|
| + * Mock class for FileSystemFileEntry.
|
| *
|
| * @param {FileSystem} filesystem File system where the entry is localed.
|
| * @param {string} fullPath Full path for the entry.
|
| - * @param {Object} metadata Metadata.
|
| + * @param {Object} metadata FileSystemMetadata.
|
| * @extends {MockEntry}
|
| * @constructor
|
| */
|
| @@ -221,7 +221,8 @@ MockFileEntry.prototype = {
|
| /**
|
| * Obtains metadata of the entry.
|
| *
|
| - * @param {function(!Metadata)} onSuccess Function to take the metadata.
|
| + * @param {function(!FileSystemMetadata)} onSuccess Function to take the
|
| + * metadata.
|
| * @param {function(Error)} onError
|
| */
|
| MockFileEntry.prototype.getMetadata = function(onSuccess, onError) {
|
| @@ -242,7 +243,7 @@ MockFileEntry.prototype.clone = function(path, opt_filesystem) {
|
| };
|
|
|
| /**
|
| - * Mock class for DirectoryEntry.
|
| + * Mock class for FileSystemDirectoryEntry.
|
| *
|
| * @param {FileSystem} filesystem File system where the entry is localed.
|
| * @param {string} fullPath Full path for the entry.
|
| @@ -268,7 +269,7 @@ MockDirectoryEntry.prototype.clone = function(path, opt_filesystem) {
|
|
|
| /**
|
| * Returns all children of the supplied directoryEntry.
|
| - * @return {!Array<!Entry>}
|
| + * @return {!Array<!FileSystemEntry>}
|
| */
|
| MockDirectoryEntry.prototype.getAllChildren = function() {
|
| return this.filesystem.findChildren_(this);
|
| @@ -325,15 +326,15 @@ MockDirectoryEntry.prototype.getDirectory =
|
|
|
| /**
|
| * Creates a MockDirectoryReader for the entry.
|
| - * @return {DirectoryReader} A directory reader.
|
| + * @return {FileSystemDirectoryReader} A directory reader.
|
| */
|
| MockDirectoryEntry.prototype.createReader = function() {
|
| return new MockDirectoryReader(this.filesystem.findChildren_(this));
|
| };
|
|
|
| /**
|
| - * Mock class for DirectoryReader.
|
| - * @param {!Array<!Entry>} entries
|
| + * Mock class for FileSystemDirectoryReader.
|
| + * @param {!Array<!FileSystemEntry>} entries
|
| */
|
| function MockDirectoryReader(entries) {
|
| this.entries_ = entries;
|
|
|