| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 class CONTENT_EXPORT SyntheticWebGestureEventBuilder { | 57 class CONTENT_EXPORT SyntheticWebGestureEventBuilder { |
| 58 public: | 58 public: |
| 59 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, | 59 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, |
| 60 blink::WebGestureDevice source_device, | 60 blink::WebGestureDevice source_device, |
| 61 int modifiers = 0); | 61 int modifiers = 0); |
| 62 static blink::WebGestureEvent BuildScrollBegin( | 62 static blink::WebGestureEvent BuildScrollBegin( |
| 63 float dx_hint, | 63 float dx_hint, |
| 64 float dy_hint, | 64 float dy_hint, |
| 65 blink::WebGestureDevice source_device); | 65 blink::WebGestureDevice source_device, |
| 66 int pointer_count = 1); |
| 66 static blink::WebGestureEvent BuildScrollUpdate( | 67 static blink::WebGestureEvent BuildScrollUpdate( |
| 67 float dx, | 68 float dx, |
| 68 float dy, | 69 float dy, |
| 69 int modifiers, | 70 int modifiers, |
| 70 blink::WebGestureDevice source_device); | 71 blink::WebGestureDevice source_device); |
| 71 static blink::WebGestureEvent BuildPinchUpdate( | 72 static blink::WebGestureEvent BuildPinchUpdate( |
| 72 float scale, | 73 float scale, |
| 73 float anchor_x, | 74 float anchor_x, |
| 74 float anchor_y, | 75 float anchor_y, |
| 75 int modifiers, | 76 int modifiers, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 95 void CancelPoint(int index); | 96 void CancelPoint(int index); |
| 96 | 97 |
| 97 void SetTimestamp(base::TimeTicks timestamp); | 98 void SetTimestamp(base::TimeTicks timestamp); |
| 98 | 99 |
| 99 int FirstFreeIndex(); | 100 int FirstFreeIndex(); |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } // namespace content | 103 } // namespace content |
| 103 | 104 |
| 104 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ | 105 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ |
| OLD | NEW |