Index: ash/wm/window_resizer.cc |
diff --git a/ash/wm/window_resizer.cc b/ash/wm/window_resizer.cc |
index fbb523ca1241df416bbce85f23ac8221cf7c0a6e..e2838e989209101cb0f6b81b14bce3a301787fd5 100644 |
--- a/ash/wm/window_resizer.cc |
+++ b/ash/wm/window_resizer.cc |
@@ -222,6 +222,13 @@ void WindowResizer::CompleteDrag() { |
window_->SetBounds(new_bounds); |
} |
+void WindowResizer::RevertDrag() { |
+ if (!did_move_or_resize_) |
+ return; |
+ |
+ window_->SetBounds(initial_bounds_); |
+} |
+ |
gfx::Rect WindowResizer::GetBoundsForDrag(const gfx::Point& location) { |
if (!is_resizable()) |
return window_->bounds(); |