| 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'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * The base class for simple filters that only modify the image content | 8 * The base class for simple filters that only modify the image content |
| 9 * but do not modify the image dimensions. | 9 * but do not modify the image dimensions. |
| 10 * @constructor | 10 * @constructor |
| 11 * @extends ImageEditor.Mode | 11 * @extends {ImageEditor.Mode} |
| 12 */ | 12 */ |
| 13 ImageEditor.Mode.Adjust = function() { | 13 ImageEditor.Mode.Adjust = function() { |
| 14 ImageEditor.Mode.apply(this, arguments); | 14 ImageEditor.Mode.apply(this, arguments); |
| 15 this.implicitCommit = true; | 15 this.implicitCommit = true; |
| 16 this.doneMessage_ = null; | 16 this.doneMessage_ = null; |
| 17 this.viewportGeneration_ = 0; | 17 this.viewportGeneration_ = 0; |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 ImageEditor.Mode.Adjust.prototype = {__proto__: ImageEditor.Mode.prototype}; | 20 ImageEditor.Mode.Adjust.prototype = {__proto__: ImageEditor.Mode.prototype}; |
| 21 | 21 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 {__proto__: ImageEditor.Mode.Adjust.prototype}; | 239 {__proto__: ImageEditor.Mode.Adjust.prototype}; |
| 240 | 240 |
| 241 /** | 241 /** |
| 242 * TODO(JSDOC) | 242 * TODO(JSDOC) |
| 243 * @param {ImageEditor.Toolbar} toolbar The toolbar to populate. | 243 * @param {ImageEditor.Toolbar} toolbar The toolbar to populate. |
| 244 */ | 244 */ |
| 245 ImageEditor.Mode.Sharpen.prototype.createTools = function(toolbar) { | 245 ImageEditor.Mode.Sharpen.prototype.createTools = function(toolbar) { |
| 246 toolbar.addRange('strength', 'GALLERY_STRENGTH', 0, 0, 1, 100); | 246 toolbar.addRange('strength', 'GALLERY_STRENGTH', 0, 0, 1, 100); |
| 247 toolbar.addRange('radius', 'GALLERY_RADIUS', 1, 1, 3); | 247 toolbar.addRange('radius', 'GALLERY_RADIUS', 1, 1, 3); |
| 248 }; | 248 }; |
| OLD | NEW |