summaryrefslogtreecommitdiffstats
path: root/ui/views/touchui/touch_selection_controller_impl_unittest.cc
diff options
context:
space:
mode:
authorvarunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 08:49:21 +0000
committervarunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 08:49:21 +0000
commit7b17bd00c3b044e9e01d01c8bfb589a5e99e99e5 (patch)
tree1c67e27e3cb1150ad80315ef6cf385e28da28d39 /ui/views/touchui/touch_selection_controller_impl_unittest.cc
parentd936677a24d0a18fc35935a999b066496f9a6ec7 (diff)
downloadchromium_src-7b17bd00c3b044e9e01d01c8bfb589a5e99e99e5.zip
chromium_src-7b17bd00c3b044e9e01d01c8bfb589a5e99e99e5.tar.gz
chromium_src-7b17bd00c3b044e9e01d01c8bfb589a5e99e99e5.tar.bz2
Add method to TouchSelectionController to check if a handle is currently being
dragged. Also fixes some handle positioning bugs. BUG=none Review URL: https://chromiumcodereview.appspot.com/13817012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195110 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/touchui/touch_selection_controller_impl_unittest.cc')
-rw-r--r--ui/views/touchui/touch_selection_controller_impl_unittest.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/views/touchui/touch_selection_controller_impl_unittest.cc b/ui/views/touchui/touch_selection_controller_impl_unittest.cc
index 15163a2..78a8236 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().