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

Unified Diff: chrome/browser/resources/file_manager/foreground/js/ui/preview_panel.js

Issue 130533003: Remove fullPaths from the file_grid.js and file_table.js. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « chrome/browser/resources/file_manager/foreground/js/file_table.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/foreground/js/ui/preview_panel.js
diff --git a/chrome/browser/resources/file_manager/foreground/js/ui/preview_panel.js b/chrome/browser/resources/file_manager/foreground/js/ui/preview_panel.js
index a8d0db482df799cf1d6ceaf1f81e71bdc64d7676..0e410f175b9bf806e6a95babb00e94238afd892f 100644
--- a/chrome/browser/resources/file_manager/foreground/js/ui/preview_panel.js
+++ b/chrome/browser/resources/file_manager/foreground/js/ui/preview_panel.js
@@ -58,7 +58,9 @@ var PreviewPanel = function(element,
* @type {PreviewPanel.Thumbnails}
*/
this.thumbnails = new PreviewPanel.Thumbnails(
- element.querySelector('.preview-thumbnails'), metadataCache);
+ element.querySelector('.preview-thumbnails'),
+ metadataCache,
+ volumeManager);
/**
* @type {HTMLElement}
@@ -95,7 +97,7 @@ var PreviewPanel = function(element,
this.sequence_ = 0;
/**
- * @type {VolumeManager}
+ * @type {VolumeManagerWrapper}
* @private
*/
this.volumeManager_ = volumeManager;
@@ -375,11 +377,13 @@ PreviewPanel.CalculatingSizeLabel.prototype.onStep_ = function() {
*
* @param {HTMLElement} element DOM Element of thumbnail container.
* @param {MetadataCache} metadataCache MetadataCache.
+ * @param {VolumeManagerWrapper} volumeManager Volume manager instance.
* @constructor
*/
-PreviewPanel.Thumbnails = function(element, metadataCache) {
+PreviewPanel.Thumbnails = function(element, metadataCache, volumeManager) {
this.element_ = element;
this.metadataCache_ = metadataCache;
+ this.volumeManager_ = volumeManager;
this.sequence_ = 0;
Object.seal(this);
};
@@ -437,6 +441,7 @@ PreviewPanel.Thumbnails.prototype.loadThumbnails_ = function(selection) {
FileGrid.decorateThumbnailBox(box,
entries[i],
this.metadataCache_,
+ this.volumeManager_,
ThumbnailLoader.FillMode.FILL,
FileGrid.ThumbnailQuality.LOW,
i == 0 && length == 1 &&
« no previous file with comments | « chrome/browser/resources/file_manager/foreground/js/file_table.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698