| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 bool& moved_beyond_slop_region, | 181 bool& moved_beyond_slop_region, |
| 182 uint32_t& unique_touch_event_id); | 182 uint32_t& unique_touch_event_id); |
| 183 uint32_t GetUniqueTouchEventId(gin::Arguments* args); | 183 uint32_t GetUniqueTouchEventId(gin::Arguments* args); |
| 184 void SendCurrentTouchEvent(blink::WebInputEvent::Type, gin::Arguments* args); | 184 void SendCurrentTouchEvent(blink::WebInputEvent::Type, gin::Arguments* args); |
| 185 | 185 |
| 186 void GestureEvent(blink::WebInputEvent::Type, | 186 void GestureEvent(blink::WebInputEvent::Type, |
| 187 gin::Arguments*); | 187 gin::Arguments*); |
| 188 | 188 |
| 189 void UpdateClickCountForButton(blink::WebMouseEvent::Button); | 189 void UpdateClickCountForButton(blink::WebMouseEvent::Button); |
| 190 | 190 |
| 191 void InitMouseWheelEvent(gin::Arguments* args, | 191 blink::WebMouseWheelEvent GetMouseWheelEvent(gin::Arguments* args, |
| 192 MouseScrollType scroll_type, | 192 MouseScrollType scroll_type, |
| 193 blink::WebMouseWheelEvent* event, | 193 bool* send_gestures); |
| 194 bool* send_gestures); | |
| 195 void InitPointerProperties(gin::Arguments* args, | 194 void InitPointerProperties(gin::Arguments* args, |
| 196 blink::WebPointerProperties* e, | 195 blink::WebPointerProperties* e, |
| 197 float* radius_x, | 196 float* radius_x, |
| 198 float* radius_y); | 197 float* radius_y); |
| 199 | 198 |
| 200 void FinishDragAndDrop(const blink::WebMouseEvent&, blink::WebDragOperation); | 199 void FinishDragAndDrop(const blink::WebMouseEvent&, blink::WebDragOperation); |
| 201 | 200 |
| 201 int ModifiersForPointer(int pointer_id); |
| 202 void DoDragAfterMouseUp(const blink::WebMouseEvent&); | 202 void DoDragAfterMouseUp(const blink::WebMouseEvent&); |
| 203 void DoDragAfterMouseMove(const blink::WebMouseEvent&); | 203 void DoDragAfterMouseMove(const blink::WebMouseEvent&); |
| 204 void ReplaySavedEvents(); | 204 void ReplaySavedEvents(); |
| 205 blink::WebInputEventResult HandleInputEventOnViewOrPopup( | 205 blink::WebInputEventResult HandleInputEventOnViewOrPopup( |
| 206 const blink::WebInputEvent& event); | 206 const blink::WebInputEvent& event); |
| 207 | 207 |
| 208 void SendGesturesForMouseWheelEvent( | 208 void SendGesturesForMouseWheelEvent( |
| 209 const blink::WebMouseWheelEvent wheel_event); | 209 const blink::WebMouseWheelEvent wheel_event); |
| 210 | 210 |
| 211 std::unique_ptr<blink::WebInputEvent> TransformScreenToWidgetCoordinates( | 211 std::unique_ptr<blink::WebInputEvent> TransformScreenToWidgetCoordinates( |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 double last_event_timestamp_; | 331 double last_event_timestamp_; |
| 332 | 332 |
| 333 base::WeakPtrFactory<EventSender> weak_factory_; | 333 base::WeakPtrFactory<EventSender> weak_factory_; |
| 334 | 334 |
| 335 DISALLOW_COPY_AND_ASSIGN(EventSender); | 335 DISALLOW_COPY_AND_ASSIGN(EventSender); |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 } // namespace test_runner | 338 } // namespace test_runner |
| 339 | 339 |
| 340 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ | 340 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ |
| OLD | NEW |