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

Unified Diff: ui/file_manager/file_manager/foreground/js/metadata_box_controller.js

Issue 2527333002: Quick View: Added Genre, Track and Duration metadata. (Closed)
Patch Set: Updated polymer element. Created 4 years, 1 month 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
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/metadata/metadata_item.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/metadata_box_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/metadata_box_controller.js b/ui/file_manager/file_manager/foreground/js/metadata_box_controller.js
index a7aa68554b41f249f1c202a88c6b5c97e881842a..ae8d06cf04b41301c99fffd2812d794eff7c968b 100644
--- a/ui/file_manager/file_manager/foreground/js/metadata_box_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/metadata_box_controller.js
@@ -142,7 +142,10 @@ MetadataBoxController.prototype.onGeneralMetadataLoaded_ = function(
'imageWidth',
'mediaAlbum',
'mediaArtist',
- 'mediaTitle'
+ 'mediaDuration',
+ 'mediaGenre',
+ 'mediaTitle',
+ 'mediaTrack',
])
.then(function(items) {
var item = items[0];
@@ -150,7 +153,10 @@ MetadataBoxController.prototype.onGeneralMetadataLoaded_ = function(
this.metadataBox_.imageWidth = item.imageWidth || 0;
this.metadataBox_.mediaAlbum = item.mediaAlbum || '';
this.metadataBox_.mediaArtist = item.mediaArtist || '';
+ this.metadataBox_.mediaDuration = item.mediaDuration || 0;
+ this.metadataBox_.mediaGenre = item.mediaGenre || '';
this.metadataBox_.mediaTitle = item.mediaTitle || '';
+ this.metadataBox_.mediaTrack = item.mediaTrack || 0;
}.bind(this));
}
}
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/metadata/metadata_item.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698