Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ui / file_manager / gallery / js / image_editor / image_transform.js
index d9fbc49..da2ec75 100644 (file)
@@ -2,8 +2,6 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-'use strict';
-
 /**
  * Crop mode.
  *
@@ -205,7 +203,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 +260,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 +369,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_);
 };
 
 /**