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

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

Issue 1255143003: Gallery.app: make edit button toggleable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix failed test cases. Created 5 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/compiled_resources.gyp ('k') | ui/file_manager/gallery/js/slide_mode.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c15346ccd81bd40e12eaafd33acaa8989e4d1e1f..94491a5a73fbdc52df82882197b345ae1a5cd0ec 100644
--- a/ui/file_manager/gallery/js/gallery.js
+++ b/ui/file_manager/gallery/js/gallery.js
@@ -102,12 +102,12 @@ function Gallery(volumeManager) {
this.errorBanner_ = new ErrorBanner(this.container_);
var slideModeButton = queryRequiredElement(
- this.topToolbar_, '.button.slide-mode');
+ this.topToolbar_, 'paper-button.slide-mode');
slideModeButton.addEventListener(
'click', this.onSlideModeButtonClicked_.bind(this));
var thumbnailModeButton = queryRequiredElement(
- this.topToolbar_, '.button.thumbnail-mode');
+ this.topToolbar_, 'paper-button.thumbnail-mode');
thumbnailModeButton.addEventListener(
'click', this.onThumbnailModeButtonClicked_.bind(this));
@@ -137,10 +137,12 @@ function Gallery(volumeManager) {
cr.dispatchSimpleEvent(this, 'image-displayed');
}.bind(this));
- this.deleteButton_ = queryRequiredElement(this.topToolbar_, '.button.delete');
+ this.deleteButton_ = queryRequiredElement(
+ this.topToolbar_, 'paper-button.delete');
this.deleteButton_.addEventListener('click', this.delete_.bind(this));
- this.shareButton_ = queryRequiredElement(this.topToolbar_, '.button.share');
+ this.shareButton_ = queryRequiredElement(
+ this.topToolbar_, 'paper-button.share');
this.shareButton_.addEventListener(
'click', this.onShareButtonClick_.bind(this));
« no previous file with comments | « ui/file_manager/gallery/js/compiled_resources.gyp ('k') | ui/file_manager/gallery/js/slide_mode.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698