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

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

Issue 1255143003: Gallery.app: make edit button toggleable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 3b8137648aea94f4fe20b11b6f2d7e2702f9fdac..64a0537abc219c0ce0ae6dad444494044ea06136 100644
--- a/ui/file_manager/gallery/js/slide_mode.js
+++ b/ui/file_manager/gallery/js/slide_mode.js
@@ -363,6 +363,13 @@ function SlideMode(container, content, topToolbar, bottomToolbar, prompt,
this.editButton_.addEventListener('click', this.toggleEditor.bind(this));
/**
+ * @private {!FilesToggleRipple}
+ * @const
+ */
+ this.editButtonToggleRipple_ = /** @type {!FilesToggleRipple} */
+ (assert(this.editButton_.querySelector('files-toggle-ripple')));
+
+ /**
* @type {!HTMLElement}
* @private
* @const
@@ -1524,6 +1531,7 @@ SlideMode.prototype.toggleEditor = function(opt_event) {
this.stopSlideshow_();
ImageUtil.setAttribute(this.container_, 'editing', !this.isEditing());
+ this.editButtonToggleRipple_.activated = this.isEditing();
if (this.isEditing()) { // isEditing has just been flipped to a new value.
// Reset zoom.
« ui/file_manager/gallery/css/gallery.css ('K') | « ui/file_manager/gallery/js/compiled_resources.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698