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

Unified Diff: ui/touch_selection/touch_handle_unittest.cc

Issue 1087893003: Support longpress drag selection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Factor out logic Created 5 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/touch_selection/touch_handle_unittest.cc
diff --git a/ui/touch_selection/touch_handle_unittest.cc b/ui/touch_selection/touch_handle_unittest.cc
index e86c3d3881b245953f17aa8621166e934718b1dc..dedd85d51f2a5ced7a287a22f6a3a168feb7ccf0 100644
--- a/ui/touch_selection/touch_handle_unittest.cc
+++ b/ui/touch_selection/touch_handle_unittest.cc
@@ -74,17 +74,18 @@ class TouchHandleTest : public testing::Test, public TouchHandleClient {
~TouchHandleTest() override {}
// TouchHandleClient implementation.
- void OnHandleDragBegin(const TouchHandle& handle) override {
+ void OnDragBegin(const TouchSelectionDraggable& handler,
+ const gfx::PointF& drag_position) override {
dragging_ = true;
}
- void OnHandleDragUpdate(const TouchHandle& handle,
- const gfx::PointF& new_position) override {
+ void OnDragUpdate(const TouchSelectionDraggable& handler,
+ const gfx::PointF& drag_position) override {
dragged_ = true;
- drag_position_ = new_position;
+ drag_position_ = drag_position;
}
- void OnHandleDragEnd(const TouchHandle& handle) override {
+ void OnDragEnd(const TouchSelectionDraggable& handler) override {
dragging_ = false;
}

Powered by Google App Engine
This is Rietveld 408576698