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

Unified Diff: ui/file_manager/gallery/js/gallery_item.js

Issue 971723002: Files.app: Rename FileSystemMetadata with MetadataModel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 5 years, 10 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/gallery/js/gallery_item.js
diff --git a/ui/file_manager/gallery/js/gallery_item.js b/ui/file_manager/gallery/js/gallery_item.js
index 2db056dc9cdb29b797b18d0554ae874dbbec8dd8..6d87f3ea692973a0fe5d86e704513e2a04707b0c 100644
--- a/ui/file_manager/gallery/js/gallery_item.js
+++ b/ui/file_manager/gallery/js/gallery_item.js
@@ -9,13 +9,13 @@
* @param {!EntryLocation} locationInfo Entry location information.
* @param {!Object} metadata Metadata for the entry.
* @param {!MetadataCache} metadataCache Metadata cache instance.
- * @param {!FileSystemMetadata} fileSystemMetadata File system metadata.
+ * @param {!MetadataModel} metadataModel File system metadata.
* @param {boolean} original Whether the entry is original or edited.
* @constructor
* @struct
*/
Gallery.Item = function(
- entry, locationInfo, metadata, metadataCache, fileSystemMetadata,
+ entry, locationInfo, metadata, metadataCache, metadataModel,
original) {
/**
* @type {!FileEntry}
@@ -43,11 +43,11 @@ Gallery.Item = function(
this.metadataCache_ = metadataCache;
/**
- * @type {!FileSystemMetadata}
+ * @type {!MetadataModel}
* @private
* @const
*/
- this.fileSystemMetadata_ = fileSystemMetadata;
+ this.metadataModel_ = metadataModel;
// TODO(yawano): Change this.contentImage and this.screenImage to private
// fields and provide utility methods for them (e.g. revokeFullImageCache).
@@ -271,7 +271,7 @@ Gallery.Item.prototype.saveToFile = function(
opt_callback(false);
}
}.bind(this));
- this.fileSystemMetadata_.notifyEntriesChanged([this.entry_]);
+ this.metadataModel_.notifyEntriesChanged([this.entry_]);
}.bind(this);
var onError = function(error) {
@@ -282,7 +282,7 @@ Gallery.Item.prototype.saveToFile = function(
};
var doSave = function(newFile, fileEntry) {
- var metadataPromise = this.fileSystemMetadata_.get(
+ var metadataPromise = this.metadataModel_.get(
[fileEntry],
['mediaMimeType', 'contentMimeType', 'ifd', 'exifLittleEndian']);
metadataPromise.then(function(metadataItems) {
« no previous file with comments | « ui/file_manager/gallery/js/gallery_data_model_unittest.js ('k') | ui/file_manager/gallery/js/gallery_item_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698