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

Unified Diff: chrome/browser/resources/file_manager/js/photo/gallery.js

Issue 14320020: Initial restyle of the gallery. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 7 years, 8 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: chrome/browser/resources/file_manager/js/photo/gallery.js
diff --git a/chrome/browser/resources/file_manager/js/photo/gallery.js b/chrome/browser/resources/file_manager/js/photo/gallery.js
index c79765928a1cfcdd171066ed78b8f0bae20f4082..1e95b2861feeb0c9386fedb2f4f00402dc7f83a9 100644
--- a/chrome/browser/resources/file_manager/js/photo/gallery.js
+++ b/chrome/browser/resources/file_manager/js/photo/gallery.js
@@ -249,6 +249,7 @@ Gallery.prototype.initDom_ = function() {
util.createChild(closeButton);
closeButton.addEventListener('click', this.onClose_.bind(this));
+ this.header_ = util.createChild(this.container_, 'header tool dimmable');
this.toolbar_ = util.createChild(this.container_, 'toolbar tool dimmable');
this.filenameSpacer_ = util.createChild(this.toolbar_, 'filename-spacer');
@@ -310,6 +311,9 @@ Gallery.prototype.initDom_ = function() {
this.selectionModel_.addEventListener('change', this.onSelection_.bind(this));
this.slideMode_.addEventListener('useraction', this.onUserAction_.bind(this));
+
+ if (util.platform.newUI())
+ document.body.setAttribute('new-ui', '');
};
/**
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | chrome/browser/resources/file_manager/js/photo/ribbon.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698