| 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 CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 const base::TimeTicks& timestamp) = 0; | 33 const base::TimeTicks& timestamp) = 0; |
| 34 virtual void Move(int index, | 34 virtual void Move(int index, |
| 35 float x, | 35 float x, |
| 36 float y, | 36 float y, |
| 37 SyntheticGestureTarget* target, | 37 SyntheticGestureTarget* target, |
| 38 const base::TimeTicks& timestamp) = 0; | 38 const base::TimeTicks& timestamp) = 0; |
| 39 virtual void Release(int index, | 39 virtual void Release(int index, |
| 40 SyntheticGestureTarget* target, | 40 SyntheticGestureTarget* target, |
| 41 const base::TimeTicks& timestamp) = 0; | 41 const base::TimeTicks& timestamp) = 0; |
| 42 | 42 |
| 43 virtual SyntheticGestureParams::GestureSourceType PointerSourceType() |
| 44 const = 0; |
| 45 |
| 43 protected: | 46 protected: |
| 44 static double ConvertTimestampToSeconds(const base::TimeTicks& timestamp); | 47 static double ConvertTimestampToSeconds(const base::TimeTicks& timestamp); |
| 45 | 48 |
| 46 private: | 49 private: |
| 47 DISALLOW_COPY_AND_ASSIGN(SyntheticPointer); | 50 DISALLOW_COPY_AND_ASSIGN(SyntheticPointer); |
| 48 }; | 51 }; |
| 49 | 52 |
| 50 } // namespace content | 53 } // namespace content |
| 51 | 54 |
| 52 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_H_ | 55 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_H_ |
| OLD | NEW |