OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * The base class for simple filters that only modify the image content | 6 * The base class for simple filters that only modify the image content |
7 * but do not modify the image dimensions. | 7 * but do not modify the image dimensions. |
8 * @constructor | 8 * @constructor |
9 * @extends ImageEditor.Mode | 9 * @extends ImageEditor.Mode |
10 */ | 10 */ |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 * TODO(JSDOC) | 164 * TODO(JSDOC) |
165 * @param {ImageEditor.Toolbar} toolbar The toolbar to populate. | 165 * @param {ImageEditor.Toolbar} toolbar The toolbar to populate. |
166 */ | 166 */ |
167 ImageEditor.Mode.Autofix.prototype.createTools = function(toolbar) { | 167 ImageEditor.Mode.Autofix.prototype.createTools = function(toolbar) { |
168 var self = this; | 168 var self = this; |
169 toolbar.addButton('Apply', this.apply.bind(this)); | 169 toolbar.addButton('Apply', this.apply.bind(this)); |
170 }; | 170 }; |
171 | 171 |
172 /** | 172 /** |
173 * TODO(JSDOC) | 173 * TODO(JSDOC) |
174 * @return {boolean} //TODO(JSDOC) | 174 * @return {boolean} //TODO(JSDOC). |
175 */ | 175 */ |
176 ImageEditor.Mode.Autofix.prototype.isApplicable = function() { | 176 ImageEditor.Mode.Autofix.prototype.isApplicable = function() { |
177 return this.getImageView().hasValidImage() && | 177 return this.getImageView().hasValidImage() && |
178 filter.autofix.isApplicable(this.getHistogram()); | 178 filter.autofix.isApplicable(this.getHistogram()); |
179 }; | 179 }; |
180 | 180 |
181 /** | 181 /** |
182 * TODO(JSDOC) | 182 * TODO(JSDOC) |
183 */ | 183 */ |
184 ImageEditor.Mode.Autofix.prototype.apply = function() { | 184 ImageEditor.Mode.Autofix.prototype.apply = function() { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 {__proto__: ImageEditor.Mode.Adjust.prototype}; | 237 {__proto__: ImageEditor.Mode.Adjust.prototype}; |
238 | 238 |
239 /** | 239 /** |
240 * TODO(JSDOC) | 240 * TODO(JSDOC) |
241 * @param {ImageEditor.Toolbar} toolbar The toolbar to populate. | 241 * @param {ImageEditor.Toolbar} toolbar The toolbar to populate. |
242 */ | 242 */ |
243 ImageEditor.Mode.Sharpen.prototype.createTools = function(toolbar) { | 243 ImageEditor.Mode.Sharpen.prototype.createTools = function(toolbar) { |
244 toolbar.addRange('strength', 0, 0, 1, 100); | 244 toolbar.addRange('strength', 0, 0, 1, 100); |
245 toolbar.addRange('radius', 1, 1, 3); | 245 toolbar.addRange('radius', 1, 1, 3); |
246 }; | 246 }; |
OLD | NEW |