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

Unified Diff: ui/views/touchui/touch_selection_controller_impl_unittest.cc

Issue 13817012: Add method to TouchSelectionController to check if a handle is currently being (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 8 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/views/touchui/touch_selection_controller_impl_unittest.cc
diff --git a/ui/views/touchui/touch_selection_controller_impl_unittest.cc b/ui/views/touchui/touch_selection_controller_impl_unittest.cc
index 15163a221c93c021afaa1fe3c6a07ebc67da246e..78a8236dfc0e74bbc3c91a1289b2ef1d7e0aa6e8 100644
--- a/ui/views/touchui/touch_selection_controller_impl_unittest.cc
+++ b/ui/views/touchui/touch_selection_controller_impl_unittest.cc
@@ -78,6 +78,9 @@ class TouchSelectionControllerImplTest : public ViewsTestBase {
else
controller->SetDraggingHandle(controller->selection_handle_2_.get());
+ // Offset the drag position by the selection handle radius since it is
+ // supposed to be in the coordinate system of the handle.
+ p.Offset(10, 0);
controller->SelectionHandleDragged(p);
// Do the work of OnMouseReleased().

Powered by Google App Engine
This is Rietveld 408576698