summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/file_manager/js/image_editor
diff options
context:
space:
mode:
authordbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-20 02:50:45 +0000
committerdbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-20 02:50:45 +0000
commitc4991f239998abe4a577be06c4419666c85556cd (patch)
tree33cff918c80bc3333f095886a4d0ca0981cd9e94 /chrome/browser/resources/file_manager/js/image_editor
parent3024571e695e2da3e3caaed51302806b93c8973d (diff)
downloadchromium_src-c4991f239998abe4a577be06c4419666c85556cd.zip
chromium_src-c4991f239998abe4a577be06c4419666c85556cd.tar.gz
chromium_src-c4991f239998abe4a577be06c4419666c85556cd.tar.bz2
[web_dev_style] (Boolean|Number|String) -> (boolean|number|string) and add
presubmit check. BUG=113202 TEST=chrome/browser/resources/test_presubmit.py Review URL: https://codereview.chromium.org/11628003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174083 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/file_manager/js/image_editor')
-rw-r--r--chrome/browser/resources/file_manager/js/image_editor/exif_encoder.js6
-rw-r--r--chrome/browser/resources/file_manager/js/image_editor/image_buffer.js4
-rw-r--r--chrome/browser/resources/file_manager/js/image_editor/image_encoder.js10
3 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/resources/file_manager/js/image_editor/exif_encoder.js b/chrome/browser/resources/file_manager/js/image_editor/exif_encoder.js
index 4b330f4..e49aee0 100644
--- a/chrome/browser/resources/file_manager/js/image_editor/exif_encoder.js
+++ b/chrome/browser/resources/file_manager/js/image_editor/exif_encoder.js
@@ -130,7 +130,7 @@ ExifEncoder.prototype.setThumbnailData = function(canvas, quality) {
/**
* Return a range where the metadata is (or should be) located.
- * @param {String} encodedImage Raw image data to look for metadata.
+ * @param {string} encodedImage Raw image data to look for metadata.
* @return {Object} An object with from and to properties.
*/
ExifEncoder.prototype.findInsertionRange = function(encodedImage) {
@@ -268,7 +268,7 @@ ExifEncoder.prototype.encode = function() {
* @param {Object} directory A directory map as created by ExifParser.
* @param {Array} resolveLater An array of tag ids for which the values will be
* resolved later.
- * @param {String} nextDirPointer A forward key for the pointer to the next
+ * @param {string} nextDirPointer A forward key for the pointer to the next
* directory. If omitted the pointer is set to 0.
*/
ExifEncoder.encodeDirectory = function(
@@ -507,7 +507,7 @@ ByteWriter.prototype.writeScalar = function(value, width, opt_signed) {
/**
* Writes string.
- * @param {String} str String to write.
+ * @param {string} str String to write.
*/
ByteWriter.prototype.writeString = function(str) {
this.validateWrite(str.length);
diff --git a/chrome/browser/resources/file_manager/js/image_editor/image_buffer.js b/chrome/browser/resources/file_manager/js/image_editor/image_buffer.js
index 8d0da59..4cf78aa 100644
--- a/chrome/browser/resources/file_manager/js/image_editor/image_buffer.js
+++ b/chrome/browser/resources/file_manager/js/image_editor/image_buffer.js
@@ -49,7 +49,7 @@ ImageBuffer.prototype.draw = function() {
* @param {number} x X coordinate for cursor.
* @param {number} y Y coordinate for cursor.
* @param {boolean} mouseDown If mouse button is down.
- * @return {String} A value for style.cursor CSS property.
+ * @return {string} A value for style.cursor CSS property.
*/
ImageBuffer.prototype.getCursorStyle = function(x, y, mouseDown) {
for (var i = this.overlays_.length - 1; i >= 0; i--) {
@@ -63,7 +63,7 @@ ImageBuffer.prototype.getCursorStyle = function(x, y, mouseDown) {
* Searches for a click handler in the descending Z-order.
* @param {number} x X coordinate for click event.
* @param {number} y Y coordinate for click event.
- * @return {Boolean} True if handled.
+ * @return {boolean} True if handled.
*/
ImageBuffer.prototype.onClick = function(x, y) {
for (var i = this.overlays_.length - 1; i >= 0; i--) {
diff --git a/chrome/browser/resources/file_manager/js/image_editor/image_encoder.js b/chrome/browser/resources/file_manager/js/image_editor/image_encoder.js
index 8673fef..54eeb6d 100644
--- a/chrome/browser/resources/file_manager/js/image_editor/image_encoder.js
+++ b/chrome/browser/resources/file_manager/js/image_editor/image_encoder.js
@@ -51,7 +51,7 @@ ImageEncoder.encodeMetadata = function(metadata, canvas, quality) {
* Return a blob with the encoded image with metadata inserted.
* @param {HTMLCanvasElement} canvas The canvas with the image to be encoded.
* @param {ImageEncoder.MetadataEncoder} metadataEncoder Encoder to use.
- * @param {Number} quality (0..1], Encoding quality, defaults to 0.9.
+ * @param {number} quality (0..1], Encoding quality, defaults to 0.9.
* @return {Blob} encoded data.
*/
ImageEncoder.getBlob = function(canvas, metadataEncoder, quality) {
@@ -106,8 +106,8 @@ ImageEncoder.getBlob = function(canvas, metadataEncoder, quality) {
* Why return a string? Calling atob and having the rest of the code deal
* with a string is several times faster than decoding base64 in Javascript.
*
- * @param {String} dataURL Data URL to decode.
- * @return {String} A binary string (char codes are the actual byte values).
+ * @param {string} dataURL Data URL to decode.
+ * @return {string} A binary string (char codes are the actual byte values).
*/
ImageEncoder.decodeDataURL = function(dataURL) {
// Skip the prefix ('data:image/<type>;base64,')
@@ -118,7 +118,7 @@ ImageEncoder.decodeDataURL = function(dataURL) {
/**
* Return a thumbnail for an image.
* @param {HTMLCanvasElement} canvas Original image.
- * @param {Number} opt_shrinkage Thumbnail should be at least this much smaller
+ * @param {number} opt_shrinkage Thumbnail should be at least this much smaller
* than the original image (in each dimension).
* @return {HTMLCanvasElement} Thumbnail canvas
*/
@@ -192,7 +192,7 @@ ImageEncoder.MetadataEncoder.prototype.setThumbnailData =
/**
* Return a range where the metadata is (or should be) located.
- * @param {String} encodedImage //TODO(JSDOC)
+ * @param {string} encodedImage //TODO(JSDOC)
* @return {Object} An object with from and to properties.
*/
ImageEncoder.MetadataEncoder.prototype.