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

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

Issue 2678723002: Compile several targets in Gallery in gyp v2. (Closed)
Patch Set: Rebased. Created 3 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.js
diff --git a/ui/file_manager/gallery/js/gallery.js b/ui/file_manager/gallery/js/gallery.js
index 4f986de4285e4f9b50cbd272b062438d3899c8ff..71aaac3f29b6d6f0f97e38adffc690418a099a4f 100644
--- a/ui/file_manager/gallery/js/gallery.js
+++ b/ui/file_manager/gallery/js/gallery.js
@@ -228,13 +228,6 @@ function Gallery(volumeManager) {
}
/**
- * Tools fade-out timeout in milliseconds.
- * @const
- * @type {number}
- */
-Gallery.FADE_TIMEOUT = 2000;
-
-/**
* First time tools fade-out timeout in milliseconds.
* @const
* @type {number}
@@ -250,14 +243,6 @@ Gallery.FIRST_FADE_TIMEOUT = 1000;
Gallery.MOSAIC_BACKGROUND_INIT_DELAY = 1000;
/**
- * Types of metadata Gallery uses (to query the metadata cache).
- * @const
- * @type {!Array<string>}
- */
-Gallery.PREFETCH_PROPERTY_NAMES =
- ['imageWidth', 'imageHeight', 'imageRotation', 'size', 'present'];
-
-/**
* Modes in Gallery.
* @enum {string}
*/
@@ -395,7 +380,7 @@ Gallery.prototype.loadInternal_ = function(entries, selectedEntries) {
var item = items[index];
var entry = item.getEntry();
var metadataPromise = self.metadataModel_.get([entry],
- Gallery.PREFETCH_PROPERTY_NAMES);
+ GalleryItem.PREFETCH_PROPERTY_NAMES);
var thumbnailPromise = thumbnailModel.get([entry]);
return Promise.all([metadataPromise, thumbnailPromise]).then(
function(metadataLists) {
« no previous file with comments | « ui/file_manager/gallery/js/compiled_resources2.gyp ('k') | ui/file_manager/gallery/js/gallery_data_model.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698