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