| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 void GestureFlingCancel(); | 130 void GestureFlingCancel(); |
| 131 void GestureFlingStart(float x, | 131 void GestureFlingStart(float x, |
| 132 float y, | 132 float y, |
| 133 float velocity_x, | 133 float velocity_x, |
| 134 float velocity_y, | 134 float velocity_y, |
| 135 gin::Arguments* args); | 135 gin::Arguments* args); |
| 136 bool IsFlinging() const; | 136 bool IsFlinging() const; |
| 137 void GestureScrollFirstPoint(int x, int y); | 137 void GestureScrollFirstPoint(int x, int y); |
| 138 | 138 |
| 139 bool GetMovedBeyondSlopRegionArg(gin::Arguments* args); | |
| 140 void TouchStart(gin::Arguments* args); | 139 void TouchStart(gin::Arguments* args); |
| 141 void TouchMove(gin::Arguments* args); | 140 void TouchMove(gin::Arguments* args); |
| 142 void TouchCancel(gin::Arguments* args); | 141 void TouchCancel(gin::Arguments* args); |
| 143 void TouchEnd(gin::Arguments* args); | 142 void TouchEnd(gin::Arguments* args); |
| 144 void NotifyStartOfTouchScroll(); | 143 void NotifyStartOfTouchScroll(); |
| 145 | 144 |
| 146 void LeapForward(int milliseconds); | 145 void LeapForward(int milliseconds); |
| 147 | 146 |
| 148 void BeginDragWithFiles(const std::vector<std::string>& files); | 147 void BeginDragWithFiles(const std::vector<std::string>& files); |
| 149 | 148 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 168 void MouseLeave(); | 167 void MouseLeave(); |
| 169 void ScheduleAsynchronousClick(int button_number, int modifiers); | 168 void ScheduleAsynchronousClick(int button_number, int modifiers); |
| 170 void ScheduleAsynchronousKeyDown(const std::string& code_str, | 169 void ScheduleAsynchronousKeyDown(const std::string& code_str, |
| 171 int modifiers, | 170 int modifiers, |
| 172 KeyLocationCode location); | 171 KeyLocationCode location); |
| 173 | 172 |
| 174 double GetCurrentEventTimeSec(); | 173 double GetCurrentEventTimeSec(); |
| 175 | 174 |
| 176 void DoLeapForward(int milliseconds); | 175 void DoLeapForward(int milliseconds); |
| 177 | 176 |
| 178 void SendCurrentTouchEvent(blink::WebInputEvent::Type, bool); | 177 void GetOptionalTouchArgs(gin::Arguments* args, |
| 178 bool& moved_beyond_slop_region, |
| 179 uint32_t& unique_touch_event_id); |
| 180 uint32_t GetUniqueTouchEventId(gin::Arguments* args); |
| 181 void SendCurrentTouchEvent(blink::WebInputEvent::Type, gin::Arguments* args); |
| 179 | 182 |
| 180 void GestureEvent(blink::WebInputEvent::Type, | 183 void GestureEvent(blink::WebInputEvent::Type, |
| 181 gin::Arguments*); | 184 gin::Arguments*); |
| 182 | 185 |
| 183 void UpdateClickCountForButton(blink::WebMouseEvent::Button); | 186 void UpdateClickCountForButton(blink::WebMouseEvent::Button); |
| 184 | 187 |
| 185 void InitMouseWheelEvent(gin::Arguments* args, | 188 void InitMouseWheelEvent(gin::Arguments* args, |
| 186 MouseScrollType scroll_type, | 189 MouseScrollType scroll_type, |
| 187 blink::WebMouseWheelEvent* event, | 190 blink::WebMouseWheelEvent* event, |
| 188 bool* send_gestures); | 191 bool* send_gestures); |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 double last_event_timestamp_; | 323 double last_event_timestamp_; |
| 321 | 324 |
| 322 base::WeakPtrFactory<EventSender> weak_factory_; | 325 base::WeakPtrFactory<EventSender> weak_factory_; |
| 323 | 326 |
| 324 DISALLOW_COPY_AND_ASSIGN(EventSender); | 327 DISALLOW_COPY_AND_ASSIGN(EventSender); |
| 325 }; | 328 }; |
| 326 | 329 |
| 327 } // namespace test_runner | 330 } // namespace test_runner |
| 328 | 331 |
| 329 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ | 332 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ |
| OLD | NEW |