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

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

Issue 624563002: Files.app: Rename Rect used in Gallery with ImageRect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/image_transform.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_transform.js b/ui/file_manager/gallery/js/image_editor/image_transform.js
index d9fbc49f81f6f325c3da28bf7719cb4c620c6868..d73e409b6920443dacf4b1d7cf88e7e5f1db9f16 100644
--- a/ui/file_manager/gallery/js/image_editor/image_transform.js
+++ b/ui/file_manager/gallery/js/image_editor/image_transform.js
@@ -205,7 +205,7 @@ ImageEditor.Mode.Crop.prototype.getCommand = function() {
*/
ImageEditor.Mode.Crop.prototype.createDefaultCrop = function() {
var rect = this.getViewport().screenToImageRect(
- new Rect(this.getViewport().getImageBoundsOnScreenClipped()));
+ new ImageRect(this.getViewport().getImageBoundsOnScreenClipped()));
rect = rect.inflate(
-Math.round(rect.width / 6), -Math.round(rect.height / 6));
this.cropRect_ = new DraggableRect(rect, this.getViewport());
@@ -262,7 +262,7 @@ ImageEditor.Mode.Crop.prototype.getDoubleTapAction = function(x, y) {
/**
* A draggable rectangle over the image.
*
- * @param {Rect} rect Initial size of the image.
+ * @param {ImageRect} rect Initial size of the image.
* @param {Viewport} viewport Viewport.
* @constructor
*/
@@ -371,10 +371,10 @@ DraggableRect.prototype.getBottom = function() {
/**
* Obtains the geometry of the rectangle.
- * @return {Rect} Geometry of the rectangle.
+ * @return {ImageRect} Geometry of the rectangle.
*/
DraggableRect.prototype.getRect = function() {
- return new Rect(this.bounds_);
+ return new ImageRect(this.bounds_);
};
/**
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/image_editor.js ('k') | ui/file_manager/gallery/js/image_editor/image_util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698