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

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

Issue 363873002: Gallery.app: Add buttons to the cropping mode to specifying the aspect ratio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Created 6 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/css/gallery.css ('k') | ui/file_manager/gallery/js/image_editor/image_transform.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/js/image_editor/image_editor.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_editor.js b/ui/file_manager/gallery/js/image_editor/image_editor.js
index faef0d950bf048998c0afa57fd3be6a2ec261b8d..b85832fb5675e1d571e9854eeae692f74bf9c1ef 100644
--- a/ui/file_manager/gallery/js/image_editor/image_editor.js
+++ b/ui/file_manager/gallery/js/image_editor/image_editor.js
@@ -901,6 +901,13 @@ ImageEditor.Toolbar = function(parent, displayStringFunction, updateCallback) {
this.wrapper_ = parent;
this.displayStringFunction_ = displayStringFunction;
this.updateCallback_ = updateCallback;
+ Object.seal(this);
+};
+
+ImageEditor.Toolbar.prototype = {
+ get element() {
+ return this.wrapper_;
+ }
};
/**
@@ -953,7 +960,8 @@ ImageEditor.Toolbar.prototype.addLabel = function(name) {
ImageEditor.Toolbar.prototype.addButton = function(
name, title, handler, opt_class) {
var button = this.create_('button');
- if (opt_class) button.classList.add(opt_class);
+ if (opt_class)
+ button.classList.add(opt_class);
var label = this.create_('span');
label.textContent = this.displayStringFunction_(title);
button.appendChild(label);
« no previous file with comments | « ui/file_manager/gallery/css/gallery.css ('k') | ui/file_manager/gallery/js/image_editor/image_transform.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698