OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_TOUCH_SELECTION_DRAG_DRAGGABLE_H_ | |
6 #define UI_TOUCH_SELECTION_DRAG_DRAGGABLE_H_ | |
7 | |
8 #include "ui/gfx/geometry/point_f.h" | |
9 #include "ui/touch_selection/ui_touch_selection_export.h" | |
10 | |
11 namespace ui { | |
12 | |
13 class MotionEvent; | |
14 class TouchSelectionDraggable; | |
15 | |
16 // Interface through which TouchSelectionDraggable manipulates the selection. | |
17 class UI_TOUCH_SELECTION_EXPORT TouchSelectionDraggableClient { | |
18 public: | |
19 virtual ~TouchSelectionDraggableClient() {} | |
20 virtual void OnDragBegin(const TouchSelectionDraggable& draggable, | |
21 const gfx::PointF& start_position) = 0; | |
22 virtual void OnDragUpdate(const TouchSelectionDraggable& draggable, | |
23 const gfx::PointF& new_position) = 0; | |
24 virtual void OnDragEnd(const TouchSelectionDraggable& draggable) = 0; | |
25 }; | |
26 | |
27 // Generic interface for entities that manipulate the selection via dragging. | |
28 class UI_TOUCH_SELECTION_EXPORT TouchSelectionDraggable { | |
29 protected: | |
30 virtual ~TouchSelectionDraggable() {} | |
mfomitchev
2015/04/23 21:05:53
Any reason not to add WillHandleTouchEvent to this
jdduke (slow)
2015/04/27 20:24:25
Hmm, but what functional purpose would it serve? W
| |
31 }; | |
32 | |
33 } // namespace ui | |
34 | |
35 #endif // UI_TOUCH_SELECTION_DRAG_DRAGGABLE_H_ | |
OLD | NEW |