| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 'use strict'; | |
| 6 | |
| 7 /** | 5 /** |
| 8 * 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 |
| 9 * but do not modify the image dimensions. | 7 * but do not modify the image dimensions. |
| 10 * @constructor | 8 * @constructor |
| 11 * @extends {ImageEditor.Mode} | 9 * @extends {ImageEditor.Mode} |
| 12 */ | 10 */ |
| 13 ImageEditor.Mode.Adjust = function() { | 11 ImageEditor.Mode.Adjust = function() { |
| 14 ImageEditor.Mode.apply(this, arguments); | 12 ImageEditor.Mode.apply(this, arguments); |
| 15 this.implicitCommit = true; | 13 this.implicitCommit = true; |
| 16 this.doneMessage_ = null; | 14 this.doneMessage_ = null; |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 {__proto__: ImageEditor.Mode.Adjust.prototype}; | 237 {__proto__: ImageEditor.Mode.Adjust.prototype}; |
| 240 | 238 |
| 241 /** | 239 /** |
| 242 * TODO(JSDOC) | 240 * TODO(JSDOC) |
| 243 * @param {ImageEditor.Toolbar} toolbar The toolbar to populate. | 241 * @param {ImageEditor.Toolbar} toolbar The toolbar to populate. |
| 244 */ | 242 */ |
| 245 ImageEditor.Mode.Sharpen.prototype.createTools = function(toolbar) { | 243 ImageEditor.Mode.Sharpen.prototype.createTools = function(toolbar) { |
| 246 toolbar.addRange('strength', 'GALLERY_STRENGTH', 0, 0, 1, 100); | 244 toolbar.addRange('strength', 'GALLERY_STRENGTH', 0, 0, 1, 100); |
| 247 toolbar.addRange('radius', 'GALLERY_RADIUS', 1, 1, 3); | 245 toolbar.addRange('radius', 'GALLERY_RADIUS', 1, 1, 3); |
| 248 }; | 246 }; |
| OLD | NEW |