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

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

Issue 398643004: Gallery: Make the minimum window size larger. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « ui/file_manager/gallery/js/gallery.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/gallery/js/slide_mode.js
diff --git a/ui/file_manager/gallery/js/slide_mode.js b/ui/file_manager/gallery/js/slide_mode.js
index b2794e7d41fa4dd01e6fa9c7832f3f3d8ccaea5e..fdc77f222e6956d1cfaf8f4ff30f92525918213e 100644
--- a/ui/file_manager/gallery/js/slide_mode.js
+++ b/ui/file_manager/gallery/js/slide_mode.js
@@ -166,7 +166,7 @@ SlideMode.prototype.initDom_ = function() {
this.advanceManually.bind(this, 1));
util.createChild(this.arrowRight_);
- this.ribbonSpacer_ = util.createChild(this.toolbar_, 'ribbon-spacer');
+ this.ribbonSpacer_ = this.toolbar_.querySelector('.ribbon-spacer');
this.ribbon_ = new Ribbon(
this.document_, this.dataModel_, this.selectionModel_);
this.ribbonSpacer_.appendChild(this.ribbon_);
@@ -179,8 +179,7 @@ SlideMode.prototype.initDom_ = function() {
util.createChild(this.container_, 'spinner');
- var slideShowButton = util.createChild(this.toolbar_,
- 'button slideshow', 'button');
+ var slideShowButton = this.toolbar_.querySelector('button.slideshow');
slideShowButton.title = this.displayStringFunction_('GALLERY_SLIDESHOW');
slideShowButton.addEventListener('click',
this.startSlideshow.bind(this, SlideMode.SLIDESHOW_INTERVAL_FIRST));
@@ -194,17 +193,17 @@ SlideMode.prototype.initDom_ = function() {
// Editor.
- this.editButton_ = util.createChild(this.toolbar_, 'button edit', 'button');
+ this.editButton_ = this.toolbar_.querySelector('button.edit');
this.editButton_.title = this.displayStringFunction_('GALLERY_EDIT');
this.editButton_.setAttribute('disabled', ''); // Disabled by default.
this.editButton_.addEventListener('click', this.toggleEditor.bind(this));
- this.printButton_ = util.createChild(this.toolbar_, 'button print', 'button');
+ this.printButton_ = this.toolbar_.querySelector('button.print');
this.printButton_.title = this.displayStringFunction_('GALLERY_PRINT');
this.printButton_.setAttribute('disabled', ''); // Disabled by default.
this.printButton_.addEventListener('click', this.print_.bind(this));
- this.editBarSpacer_ = util.createChild(this.toolbar_, 'edit-bar-spacer');
+ this.editBarSpacer_ = this.toolbar_.querySelector('.edit-bar-spacer');
this.editBarMain_ = util.createChild(this.editBarSpacer_, 'edit-main');
this.editBarMode_ = util.createChild(this.container_, 'edit-modal');
« no previous file with comments | « ui/file_manager/gallery/js/gallery.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698