OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ | 5 #ifndef CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ |
6 #define CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ | 6 #define CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "third_party/WebKit/public/web/WebInputEvent.h" | 10 #include "third_party/WebKit/public/web/WebInputEvent.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 : public NON_EXPORTED_BASE(blink::WebTouchEvent) { | 64 : public NON_EXPORTED_BASE(blink::WebTouchEvent) { |
65 public: | 65 public: |
66 SyntheticWebTouchEvent(); | 66 SyntheticWebTouchEvent(); |
67 | 67 |
68 // Mark all the points as stationary, and remove any released points. | 68 // Mark all the points as stationary, and remove any released points. |
69 void ResetPoints(); | 69 void ResetPoints(); |
70 | 70 |
71 // Adds an additional point to the touch list, returning the point's index. | 71 // Adds an additional point to the touch list, returning the point's index. |
72 int PressPoint(float x, float y); | 72 int PressPoint(float x, float y); |
73 void MovePoint(int index, float x, float y); | 73 void MovePoint(int index, float x, float y); |
74 void ChangePointRadius(int index, float radiusX, float radiusY); | |
jdduke (slow)
2015/01/29 16:53:19
I don't think we need these extra methods, you can
USE s.singapati at gmail.com
2015/01/30 12:19:28
Done.
| |
75 void ChangePointRotationAngleAndForce( | |
76 int index, | |
77 float rotationAngle, | |
78 float force); | |
74 void ReleasePoint(int index); | 79 void ReleasePoint(int index); |
75 void CancelPoint(int index); | 80 void CancelPoint(int index); |
76 | 81 |
77 void SetTimestamp(base::TimeDelta timestamp); | 82 void SetTimestamp(base::TimeDelta timestamp); |
78 }; | 83 }; |
79 | 84 |
80 } // namespace content | 85 } // namespace content |
81 | 86 |
82 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ | 87 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ |
OLD | NEW |