Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: ui/file_manager/gallery/js/image_editor/viewport.js

Issue 450903002: Random clean up around Chrome OS file manager code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/gallery/js/image_editor/viewport.js
diff --git a/ui/file_manager/gallery/js/image_editor/viewport.js b/ui/file_manager/gallery/js/image_editor/viewport.js
index ce60c046ff8ad70c5bdeb827e9d0a69c7049d883..52960c09b1b5727ae6e1117467da78f3a9c8c18d 100644
--- a/ui/file_manager/gallery/js/image_editor/viewport.js
+++ b/ui/file_manager/gallery/js/image_editor/viewport.js
@@ -137,7 +137,7 @@ Viewport.prototype.getZoom = function() {
};
/**
- * Sets the nearset larger value of ZOOM_RATIOS.
+ * Sets the nearest larger value of ZOOM_RATIOS.
*/
Viewport.prototype.zoomIn = function() {
var zoom = Viewport.ZOOM_RATIOS[0];
@@ -193,7 +193,7 @@ Viewport.prototype.getRotation = function() {
*
* @param {number} width Width of the full resolution image.
* @param {number} height Height of the full resolution image.
- * @return {number} The ratio of the fullresotion image size and the calculated
+ * @return {number} The ratio of the full resotion image size and the calculated
* displayed image size.
*/
Viewport.prototype.getFittingScaleForImageSize_ = function(width, height) {
@@ -417,7 +417,7 @@ Viewport.prototype.update_ = function() {
this.generation_++;
}
- // Image bounds on screen cliped with the screen bounds.
+ // Image bounds on screen clipped with the screen bounds.
var left = Math.max(this.imageBoundsOnScreen_.left, 0);
var top = Math.max(this.imageBoundsOnScreen_.top, 0);
var right = Math.min(
@@ -500,11 +500,11 @@ Viewport.prototype.getInverseTransformForRotatedImage = function(orientation) {
/**
* Obtains CSS transformation that makes the cropped image fit the original
- * image. The new cropped image that the transformaton is applied to fits to the
+ * image. The new cropped image that the transformation is applied to fits to
* the cropped rectangle in the original image.
*
* @param {number} imageWidth Width of the original image.
- * @param {number} imageHeight Height of the origianl image.
+ * @param {number} imageHeight Height of the original image.
* @param {Rect} imageCropRect Crop rectangle in the image's coordinate system.
* @return {string} Transformation description.
*/
@@ -528,7 +528,7 @@ Viewport.prototype.getInverseTransformForCroppedImage =
};
/**
- * Obtains CSS transformaton that makes the image fit to the screen rectangle.
+ * Obtains CSS transformation that makes the image fit to the screen rectangle.
*
* @param {Rect} screenRect Screen rectangle.
* @return {string} Transformation description.

Powered by Google App Engine
This is Rietveld 408576698