| 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" |
| 11 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 11 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 12 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" |
| 12 | 13 |
| 13 // Provides sensible creation of default WebInputEvents for testing purposes. | 14 // Provides sensible creation of default WebInputEvents for testing purposes. |
| 14 | 15 |
| 15 namespace content { | 16 namespace content { |
| 16 | 17 |
| 17 class CONTENT_EXPORT SyntheticWebMouseEventBuilder { | 18 class CONTENT_EXPORT SyntheticWebMouseEventBuilder { |
| 18 public: | 19 public: |
| 19 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type); | 20 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type); |
| 20 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type, | 21 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type, |
| 21 int window_x, | 22 int window_x, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 int FirstFreeIndex(); | 93 int FirstFreeIndex(); |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 } // namespace content | 96 } // namespace content |
| 96 | 97 |
| 97 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ | 98 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ |
| OLD | NEW |