| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ | 6 #define COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 void MouseLeave(); | 170 void MouseLeave(); |
| 171 void ScheduleAsynchronousClick(int button_number, int modifiers); | 171 void ScheduleAsynchronousClick(int button_number, int modifiers); |
| 172 void ScheduleAsynchronousKeyDown(const std::string& code_str, | 172 void ScheduleAsynchronousKeyDown(const std::string& code_str, |
| 173 int modifiers, | 173 int modifiers, |
| 174 KeyLocationCode location); | 174 KeyLocationCode location); |
| 175 | 175 |
| 176 double GetCurrentEventTimeSec(); | 176 double GetCurrentEventTimeSec(); |
| 177 | 177 |
| 178 void DoLeapForward(int milliseconds); | 178 void DoLeapForward(int milliseconds); |
| 179 | 179 |
| 180 void GetOptionalTouchArgs(gin::Arguments* args, | |
| 181 bool& moved_beyond_slop_region, | |
| 182 uint32_t& unique_touch_event_id); | |
| 183 uint32_t GetUniqueTouchEventId(gin::Arguments* args); | 180 uint32_t GetUniqueTouchEventId(gin::Arguments* args); |
| 184 void SendCurrentTouchEvent(blink::WebInputEvent::Type, gin::Arguments* args); | 181 void SendCurrentTouchEvent(blink::WebInputEvent::Type, gin::Arguments* args); |
| 185 | 182 |
| 186 void GestureEvent(blink::WebInputEvent::Type, | 183 void GestureEvent(blink::WebInputEvent::Type, |
| 187 gin::Arguments*); | 184 gin::Arguments*); |
| 188 | 185 |
| 189 void UpdateClickCountForButton(blink::WebMouseEvent::Button); | 186 void UpdateClickCountForButton(blink::WebMouseEvent::Button); |
| 190 | 187 |
| 191 blink::WebMouseWheelEvent GetMouseWheelEvent(gin::Arguments* args, | 188 blink::WebMouseWheelEvent GetMouseWheelEvent(gin::Arguments* args, |
| 192 MouseScrollType scroll_type, | 189 MouseScrollType scroll_type, |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 double last_event_timestamp_; | 328 double last_event_timestamp_; |
| 332 | 329 |
| 333 base::WeakPtrFactory<EventSender> weak_factory_; | 330 base::WeakPtrFactory<EventSender> weak_factory_; |
| 334 | 331 |
| 335 DISALLOW_COPY_AND_ASSIGN(EventSender); | 332 DISALLOW_COPY_AND_ASSIGN(EventSender); |
| 336 }; | 333 }; |
| 337 | 334 |
| 338 } // namespace test_runner | 335 } // namespace test_runner |
| 339 | 336 |
| 340 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ | 337 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ |
| OLD | NEW |