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

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

Issue 1174853002: Revert "Gallery: Replace buttons in top toolbar with paper-button and new icons." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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') | ui/file_manager/integration_tests/gallery/photo_editor.js » ('j') | 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 35a4301398d1ea5de95df3c017842315683d5d22..657bb853b615c84bdb9e75c1fc59702059fa132c 100644
--- a/ui/file_manager/gallery/js/slide_mode.js
+++ b/ui/file_manager/gallery/js/slide_mode.js
@@ -341,7 +341,8 @@ function SlideMode(container, content, topToolbar, bottomToolbar, prompt,
* @const
*/
var slideShowButton = queryRequiredElement(this.topToolbar_,
- '.button.slideshow');
+ 'button.slideshow');
+ slideShowButton.title = this.displayStringFunction_('GALLERY_SLIDESHOW');
slideShowButton.addEventListener('click',
this.startSlideshow.bind(this, SlideMode.SLIDESHOW_INTERVAL_FIRST));
@@ -362,7 +363,9 @@ function SlideMode(container, content, topToolbar, bottomToolbar, prompt,
* @private
* @const
*/
- this.editButton_ = queryRequiredElement(this.topToolbar_, '.button.edit');
+ this.editButton_ = queryRequiredElement(this.topToolbar_, 'button.edit');
+ this.editButton_.title = this.displayStringFunction_('GALLERY_EDIT');
+ this.editButton_.disabled = true; // Disabled by default.
this.editButton_.addEventListener('click', this.toggleEditor.bind(this));
/**
@@ -370,7 +373,9 @@ function SlideMode(container, content, topToolbar, bottomToolbar, prompt,
* @private
* @const
*/
- this.printButton_ = queryRequiredElement(this.topToolbar_, '.button.print');
+ this.printButton_ = queryRequiredElement(this.topToolbar_, 'button.print');
+ this.printButton_.title = this.displayStringFunction_('GALLERY_PRINT');
+ this.printButton_.disabled = true; // Disabled by default.
this.printButton_.addEventListener('click', this.print_.bind(this));
/**
« no previous file with comments | « ui/file_manager/gallery/js/gallery.js ('k') | ui/file_manager/integration_tests/gallery/photo_editor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698