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/platform/WebGestureEvent.h" | 10 #include "third_party/WebKit/public/platform/WebGestureEvent.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 }; | 44 }; |
45 | 45 |
46 class CONTENT_EXPORT SyntheticWebKeyboardEventBuilder { | 46 class CONTENT_EXPORT SyntheticWebKeyboardEventBuilder { |
47 public: | 47 public: |
48 static blink::WebKeyboardEvent Build(blink::WebInputEvent::Type type); | 48 static blink::WebKeyboardEvent Build(blink::WebInputEvent::Type type); |
49 }; | 49 }; |
50 | 50 |
51 class CONTENT_EXPORT SyntheticWebGestureEventBuilder { | 51 class CONTENT_EXPORT SyntheticWebGestureEventBuilder { |
52 public: | 52 public: |
53 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, | 53 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, |
54 blink::WebGestureDevice source_device); | 54 blink::WebGestureDevice source_device, |
| 55 int modifiers = 0); |
55 static blink::WebGestureEvent BuildScrollBegin( | 56 static blink::WebGestureEvent BuildScrollBegin( |
56 float dx_hint, | 57 float dx_hint, |
57 float dy_hint, | 58 float dy_hint, |
58 blink::WebGestureDevice source_device); | 59 blink::WebGestureDevice source_device); |
59 static blink::WebGestureEvent BuildScrollUpdate( | 60 static blink::WebGestureEvent BuildScrollUpdate( |
60 float dx, | 61 float dx, |
61 float dy, | 62 float dy, |
62 int modifiers, | 63 int modifiers, |
63 blink::WebGestureDevice source_device); | 64 blink::WebGestureDevice source_device); |
64 static blink::WebGestureEvent BuildPinchUpdate( | 65 static blink::WebGestureEvent BuildPinchUpdate( |
(...skipping 21 matching lines...) Expand all Loading... |
86 void MovePoint(int index, float x, float y); | 87 void MovePoint(int index, float x, float y); |
87 void ReleasePoint(int index); | 88 void ReleasePoint(int index); |
88 void CancelPoint(int index); | 89 void CancelPoint(int index); |
89 | 90 |
90 void SetTimestamp(base::TimeTicks timestamp); | 91 void SetTimestamp(base::TimeTicks timestamp); |
91 }; | 92 }; |
92 | 93 |
93 } // namespace content | 94 } // namespace content |
94 | 95 |
95 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ | 96 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ |
OLD | NEW |