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