| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_EXO_TOUCH_DELEGATE_H_ | 5 #ifndef COMPONENTS_EXO_TOUCH_DELEGATE_H_ |
| 6 #define COMPONENTS_EXO_TOUCH_DELEGATE_H_ | 6 #define COMPONENTS_EXO_TOUCH_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Called when a touch point has disappeared. No further events will be sent | 38 // Called when a touch point has disappeared. No further events will be sent |
| 39 // for this touch point. | 39 // for this touch point. |
| 40 virtual void OnTouchUp(base::TimeTicks time_stamp, int id) = 0; | 40 virtual void OnTouchUp(base::TimeTicks time_stamp, int id) = 0; |
| 41 | 41 |
| 42 // Called when a touch point has changed coordinates. | 42 // Called when a touch point has changed coordinates. |
| 43 virtual void OnTouchMotion(base::TimeTicks time_stamp, | 43 virtual void OnTouchMotion(base::TimeTicks time_stamp, |
| 44 int id, | 44 int id, |
| 45 const gfx::Point& location) = 0; | 45 const gfx::Point& location) = 0; |
| 46 | 46 |
| 47 // Called when a touch point has changed its shape. |
| 48 virtual void OnTouchShape(int id, float major, float minor) = 0; |
| 49 |
| 50 // Called when the client should apply all updated touches. |
| 51 virtual void OnTouchFrame() = 0; |
| 52 |
| 47 // Called when the touch session has been canceled. Touch cancellation | 53 // Called when the touch session has been canceled. Touch cancellation |
| 48 // applies to all touch points currently active. | 54 // applies to all touch points currently active. |
| 49 virtual void OnTouchCancel() = 0; | 55 virtual void OnTouchCancel() = 0; |
| 50 | 56 |
| 51 protected: | 57 protected: |
| 52 virtual ~TouchDelegate() {} | 58 virtual ~TouchDelegate() {} |
| 53 }; | 59 }; |
| 54 | 60 |
| 55 } // namespace exo | 61 } // namespace exo |
| 56 | 62 |
| 57 #endif // COMPONENTS_EXO_TOUCH_DELEGATE_H_ | 63 #endif // COMPONENTS_EXO_TOUCH_DELEGATE_H_ |
| OLD | NEW |