Index: ui/views/pointer_watcher.h |
diff --git a/ui/views/pointer_watcher.h b/ui/views/pointer_watcher.h |
index 2abc4cb42d220fdb90587dc70974246278d3bb0e..ae206a372f22cf7514034f3529fe4c2be2245e4a 100644 |
--- a/ui/views/pointer_watcher.h |
+++ b/ui/views/pointer_watcher.h |
@@ -29,12 +29,21 @@ class VIEWS_EXPORT PointerWatcher { |
public: |
virtual ~PointerWatcher() {} |
- virtual void OnMousePressed(const ui::MouseEvent& event, |
- const gfx::Point& location_in_screen, |
- Widget* target) = 0; |
- virtual void OnTouchPressed(const ui::TouchEvent& event, |
- const gfx::Point& location_in_screen, |
- Widget* target) = 0; |
+ virtual void OnMousePressObserved(const ui::MouseEvent& event, |
+ const gfx::Point& location_in_screen, |
+ Widget* target) = 0; |
+ virtual void OnTouchPressObserved(const ui::TouchEvent& event, |
+ const gfx::Point& location_in_screen, |
+ Widget* target) = 0; |
+ virtual void OnTouchReleaseObserved(const ui::TouchEvent& event, |
+ const gfx::Point& location_in_screen, |
+ Widget* target) = 0; |
+ virtual void OnTouchMoveObserved(const ui::TouchEvent& event, |
+ const gfx::Point& location_in_screen, |
+ Widget* target) = 0; |
+ virtual void OnTouchCancellObserved(const ui::TouchEvent& event, |
+ const gfx::Point& location_in_screen, |
+ Widget* target) = 0; |
sadrul
2016/06/27 14:44:54
*Cancel
Instead of having type-specific callbacks
riajiang
2016/06/28 21:52:51
Done.
|
}; |
} // namespace views |