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

Unified Diff: ash/wm/gestures/two_finger_drag_handler.cc

Issue 15008002: Make touch-resizing windows to screen edge possible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adjust unit tests with final behavior Created 7 years, 6 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
« no previous file with comments | « ash/wm/drag_window_resizer_unittest.cc ('k') | ash/wm/panels/panel_window_resizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/gestures/two_finger_drag_handler.cc
diff --git a/ash/wm/gestures/two_finger_drag_handler.cc b/ash/wm/gestures/two_finger_drag_handler.cc
index 53475fe278b871602af922217b59c8ce913771f2..49f7ecc02dd530562bc4ea759a95a19b28e0197a 100644
--- a/ash/wm/gestures/two_finger_drag_handler.cc
+++ b/ash/wm/gestures/two_finger_drag_handler.cc
@@ -98,8 +98,11 @@ bool TwoFingerDragHandler::ProcessGestureEvent(aura::Window* target,
if (WindowComponentsAllowMoving(first_finger_hittest_,
target->delegate()->GetNonClientComponent(event.location()))) {
target->AddObserver(this);
- window_resizer_ = CreateWindowResizer(target,
- event.details().bounding_box().CenterPoint(), HTCAPTION);
+ window_resizer_ = CreateWindowResizer(
+ target,
+ event.details().bounding_box().CenterPoint(),
+ HTCAPTION,
+ aura::client::WINDOW_MOVE_SOURCE_TOUCH);
return true;
}
}
« no previous file with comments | « ash/wm/drag_window_resizer_unittest.cc ('k') | ash/wm/panels/panel_window_resizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698