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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 198 |
199 void DoDragAfterMouseUp(const blink::WebMouseEvent&); | 199 void DoDragAfterMouseUp(const blink::WebMouseEvent&); |
200 void DoDragAfterMouseMove(const blink::WebMouseEvent&); | 200 void DoDragAfterMouseMove(const blink::WebMouseEvent&); |
201 void ReplaySavedEvents(); | 201 void ReplaySavedEvents(); |
202 blink::WebInputEventResult HandleInputEventOnViewOrPopup( | 202 blink::WebInputEventResult HandleInputEventOnViewOrPopup( |
203 const blink::WebInputEvent&); | 203 const blink::WebInputEvent&); |
204 | 204 |
205 void SendGesturesForMouseWheelEvent( | 205 void SendGesturesForMouseWheelEvent( |
206 const blink::WebMouseWheelEvent wheel_event); | 206 const blink::WebMouseWheelEvent wheel_event); |
207 | 207 |
| 208 std::unique_ptr<blink::WebInputEvent> ScaleEvent( |
| 209 const blink::WebInputEvent& event); |
| 210 |
208 double last_event_timestamp() { return last_event_timestamp_; } | 211 double last_event_timestamp() { return last_event_timestamp_; } |
209 | 212 |
210 bool force_layout_on_events() const { return force_layout_on_events_; } | 213 bool force_layout_on_events() const { return force_layout_on_events_; } |
211 void set_force_layout_on_events(bool force) { | 214 void set_force_layout_on_events(bool force) { |
212 force_layout_on_events_ = force; | 215 force_layout_on_events_ = force; |
213 } | 216 } |
214 | 217 |
215 bool is_drag_mode() const { return is_drag_mode_; } | 218 bool is_drag_mode() const { return is_drag_mode_; } |
216 void set_is_drag_mode(bool drag_mode) { is_drag_mode_ = drag_mode; } | 219 void set_is_drag_mode(bool drag_mode) { is_drag_mode_ = drag_mode; } |
217 | 220 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 double last_event_timestamp_; | 326 double last_event_timestamp_; |
324 | 327 |
325 base::WeakPtrFactory<EventSender> weak_factory_; | 328 base::WeakPtrFactory<EventSender> weak_factory_; |
326 | 329 |
327 DISALLOW_COPY_AND_ASSIGN(EventSender); | 330 DISALLOW_COPY_AND_ASSIGN(EventSender); |
328 }; | 331 }; |
329 | 332 |
330 } // namespace test_runner | 333 } // namespace test_runner |
331 | 334 |
332 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ | 335 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ |
OLD | NEW |