Index: chrome/browser/resources/file_manager/js/image_editor/image_adjust.js |
=================================================================== |
--- chrome/browser/resources/file_manager/js/image_editor/image_adjust.js (revision 182284) |
+++ chrome/browser/resources/file_manager/js/image_editor/image_adjust.js (working copy) |
@@ -30,9 +30,7 @@ |
this.hidePreview(); |
}; |
-/** |
- * TODO(JSDOC) |
- */ |
+//TODO(JSDOC) |
ImageEditor.Mode.Adjust.prototype.hidePreview = function() { |
if (this.canvas_) { |
this.canvas_.parentNode.removeChild(this.canvas_); |
@@ -40,27 +38,20 @@ |
} |
}; |
-/** |
- * TODO(JSDOC) |
- */ |
+//TODO(JSDOC) |
ImageEditor.Mode.Adjust.prototype.cleanUpCaches = function() { |
this.filter_ = null; |
this.previewImageData_ = null; |
}; |
-/** |
- * TODO(JSDOC) |
- */ |
+//TODO(JSDOC) |
ImageEditor.Mode.Adjust.prototype.reset = function() { |
ImageEditor.Mode.prototype.reset.call(this); |
this.hidePreview(); |
this.cleanUpCaches(); |
}; |
-/** |
- * TODO(JSDOC) |
- * @param {Object} options //TODO(JSDOC). |
- */ |
+//TODO(JSDOC) |
ImageEditor.Mode.Adjust.prototype.update = function(options) { |
ImageEditor.Mode.prototype.update.apply(this, arguments); |
@@ -99,11 +90,7 @@ |
* Own methods |
*/ |
-/** |
- * TODO(JSDOC) |
- * @param {Object} options //TODO(JSDOC). |
- * @return {function(ImageData,ImageData,number,number)} Created function. |
- */ |
+//TODO(JSDOC) |
ImageEditor.Mode.Adjust.prototype.createFilter = function(options) { |
return filter.create(this.name, options); |
}; |
@@ -119,11 +106,6 @@ |
ImageEditor.Mode.ColorFilter.prototype = |
{__proto__: ImageEditor.Mode.Adjust.prototype}; |
-/** |
- * TODO(JSDOC) |
- * @return {{r: Array.<number>, g: Array.<number>, b: Array.<number>}} |
- * histogram. |
- */ |
ImageEditor.Mode.ColorFilter.prototype.getHistogram = function() { |
return filter.getHistogram(this.getImageView().getThumbnail()); |
}; |
@@ -139,10 +121,6 @@ |
ImageEditor.Mode.Exposure.prototype = |
{__proto__: ImageEditor.Mode.ColorFilter.prototype}; |
-/** |
- * TODO(JSDOC) |
- * @param {ImageEditor.Toolbar} toolbar The toolbar to populate. |
- */ |
ImageEditor.Mode.Exposure.prototype.createTools = function(toolbar) { |
toolbar.addRange('brightness', -1, 0, 1, 100); |
toolbar.addRange('contrast', -1, 0, 1, 100); |
@@ -160,27 +138,16 @@ |
ImageEditor.Mode.Autofix.prototype = |
{__proto__: ImageEditor.Mode.ColorFilter.prototype}; |
-/** |
- * TODO(JSDOC) |
- * @param {ImageEditor.Toolbar} toolbar The toolbar to populate. |
- */ |
ImageEditor.Mode.Autofix.prototype.createTools = function(toolbar) { |
var self = this; |
toolbar.addButton('Apply', this.apply.bind(this)); |
}; |
-/** |
- * TODO(JSDOC) |
- * @return {boolean} //TODO(JSDOC) |
- */ |
ImageEditor.Mode.Autofix.prototype.isApplicable = function() { |
return this.getImageView().hasValidImage() && |
filter.autofix.isApplicable(this.getHistogram()); |
}; |
-/** |
- * TODO(JSDOC) |
- */ |
ImageEditor.Mode.Autofix.prototype.apply = function() { |
this.update({histogram: this.getHistogram()}); |
}; |
@@ -197,9 +164,6 @@ |
ImageEditor.Mode.InstantAutofix.prototype = |
{__proto__: ImageEditor.Mode.Autofix.prototype}; |
-/** |
- * TODO(JSDOC) |
- */ |
ImageEditor.Mode.InstantAutofix.prototype.setUp = function() { |
ImageEditor.Mode.Autofix.prototype.setUp.apply(this, arguments); |
this.apply(); |
@@ -216,10 +180,6 @@ |
ImageEditor.Mode.Blur.prototype = |
{__proto__: ImageEditor.Mode.Adjust.prototype}; |
-/** |
- * TODO(JSDOC) |
- * @param {ImageEditor.Toolbar} toolbar The toolbar to populate. |
- */ |
ImageEditor.Mode.Blur.prototype.createTools = function(toolbar) { |
toolbar.addRange('strength', 0, 0, 1, 100); |
toolbar.addRange('radius', 1, 1, 3); |
@@ -236,10 +196,6 @@ |
ImageEditor.Mode.Sharpen.prototype = |
{__proto__: ImageEditor.Mode.Adjust.prototype}; |
-/** |
- * TODO(JSDOC) |
- * @param {ImageEditor.Toolbar} toolbar The toolbar to populate. |
- */ |
ImageEditor.Mode.Sharpen.prototype.createTools = function(toolbar) { |
toolbar.addRange('strength', 0, 0, 1, 100); |
toolbar.addRange('radius', 1, 1, 3); |