| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 void GestureTwoFingerTap(gin::Arguments* args); | 163 void GestureTwoFingerTap(gin::Arguments* args); |
| 164 | 164 |
| 165 void MouseScrollBy(gin::Arguments* args, MouseScrollType scroll_type); | 165 void MouseScrollBy(gin::Arguments* args, MouseScrollType scroll_type); |
| 166 void MouseMoveTo(gin::Arguments* args); | 166 void MouseMoveTo(gin::Arguments* args); |
| 167 void MouseLeave(); | 167 void MouseLeave(); |
| 168 void ScheduleAsynchronousClick(int button_number, int modifiers); | 168 void ScheduleAsynchronousClick(int button_number, int modifiers); |
| 169 void ScheduleAsynchronousKeyDown(const std::string& code_str, | 169 void ScheduleAsynchronousKeyDown(const std::string& code_str, |
| 170 int modifiers, | 170 int modifiers, |
| 171 KeyLocationCode location); | 171 KeyLocationCode location); |
| 172 | 172 |
| 173 double GetCurrentEventTimeSec(); | 173 double GetMockTimeSeconds(); |
| 174 | 174 |
| 175 void DoLeapForward(int milliseconds); | 175 void DoLeapForward(int milliseconds); |
| 176 | 176 |
| 177 void GetOptionalTouchArgs(gin::Arguments* args, | 177 void GetOptionalTouchArgs(gin::Arguments* args, |
| 178 bool& moved_beyond_slop_region, | 178 bool& moved_beyond_slop_region, |
| 179 uint32_t& unique_touch_event_id); | 179 uint32_t& unique_touch_event_id); |
| 180 uint32_t GetUniqueTouchEventId(gin::Arguments* args); | 180 uint32_t GetUniqueTouchEventId(gin::Arguments* args); |
| 181 void SendCurrentTouchEvent(blink::WebInputEvent::Type, gin::Arguments* args); | 181 void SendCurrentTouchEvent(blink::WebInputEvent::Type, gin::Arguments* args); |
| 182 | 182 |
| 183 void GestureEvent(blink::WebInputEvent::Type, | 183 void GestureEvent(blink::WebInputEvent::Type, |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 double last_event_timestamp_; | 326 double last_event_timestamp_; |
| 327 | 327 |
| 328 base::WeakPtrFactory<EventSender> weak_factory_; | 328 base::WeakPtrFactory<EventSender> weak_factory_; |
| 329 | 329 |
| 330 DISALLOW_COPY_AND_ASSIGN(EventSender); | 330 DISALLOW_COPY_AND_ASSIGN(EventSender); |
| 331 }; | 331 }; |
| 332 | 332 |
| 333 } // namespace test_runner | 333 } // namespace test_runner |
| 334 | 334 |
| 335 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ | 335 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ |
| OLD | NEW |