Index: ash/wm/window_resizer.h |
diff --git a/ash/wm/window_resizer.h b/ash/wm/window_resizer.h |
index bc46df85e31a51b9adb9d2932678303db03eee87..51ac3b4798aaa07e8a3ca72c19f1d091f5c57e3e 100644 |
--- a/ash/wm/window_resizer.h |
+++ b/ash/wm/window_resizer.h |
@@ -89,6 +89,9 @@ class ASH_EXPORT WindowResizer { |
// Will the drag actually modify the window? |
bool is_resizable; |
+ |
+ // Is the drag initiated by a touch action? |
+ bool is_touch; |
}; |
static gfx::Rect CalculateBoundsForDrag(const Details& details, |
@@ -97,6 +100,14 @@ class ASH_EXPORT WindowResizer { |
static gfx::Rect AdjustBoundsToGrid(const gfx::Rect& bounds, |
int grid_size); |
+ // Adjusts amounts of movement for touch resizes. Normally, the window border |
+ // being dragged is several pixels behind the finger. This adjustment gives |
+ // more speed to the window border, such that the border and the finger line |
+ // up at the edge of the screen. |
+ static void AdjustDeltaForTouch(const Details& details, |
+ int* delta_x, |
+ int* delta_y); |
+ |
static bool IsBottomEdge(int component); |
private: |