| 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 <queue> | 8 #include <queue> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 float* radius_x, | 177 float* radius_x, |
| 178 float* radius_y); | 178 float* radius_y); |
| 179 | 179 |
| 180 void FinishDragAndDrop(const blink::WebMouseEvent&, blink::WebDragOperation); | 180 void FinishDragAndDrop(const blink::WebMouseEvent&, blink::WebDragOperation); |
| 181 | 181 |
| 182 void DoMouseUp(const blink::WebMouseEvent&); | 182 void DoMouseUp(const blink::WebMouseEvent&); |
| 183 void DoMouseMove(const blink::WebMouseEvent&); | 183 void DoMouseMove(const blink::WebMouseEvent&); |
| 184 void ReplaySavedEvents(); | 184 void ReplaySavedEvents(); |
| 185 bool HandleInputEventOnViewOrPopup(const blink::WebInputEvent&); | 185 bool HandleInputEventOnViewOrPopup(const blink::WebInputEvent&); |
| 186 | 186 |
| 187 double last_event_timestamp() { return last_event_timestamp_; } |
| 188 |
| 187 bool force_layout_on_events() const { return force_layout_on_events_; } | 189 bool force_layout_on_events() const { return force_layout_on_events_; } |
| 188 void set_force_layout_on_events(bool force) { | 190 void set_force_layout_on_events(bool force) { |
| 189 force_layout_on_events_ = force; | 191 force_layout_on_events_ = force; |
| 190 } | 192 } |
| 191 | 193 |
| 192 bool is_drag_mode() const { return is_drag_mode_; } | 194 bool is_drag_mode() const { return is_drag_mode_; } |
| 193 void set_is_drag_mode(bool drag_mode) { is_drag_mode_ = drag_mode; } | 195 void set_is_drag_mode(bool drag_mode) { is_drag_mode_ = drag_mode; } |
| 194 | 196 |
| 195 #if defined(OS_WIN) | 197 #if defined(OS_WIN) |
| 196 int wm_key_down() const { return wm_key_down_; } | 198 int wm_key_down() const { return wm_key_down_; } |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 blink::WebPoint last_click_pos_; | 274 blink::WebPoint last_click_pos_; |
| 273 | 275 |
| 274 // The last button number passed to mouseDown and mouseUp. | 276 // The last button number passed to mouseDown and mouseUp. |
| 275 // Used to determine whether the click count continues to increment or not. | 277 // Used to determine whether the click count continues to increment or not. |
| 276 static blink::WebMouseEvent::Button last_button_type_; | 278 static blink::WebMouseEvent::Button last_button_type_; |
| 277 | 279 |
| 278 blink::WebDragOperation current_drag_effect_; | 280 blink::WebDragOperation current_drag_effect_; |
| 279 | 281 |
| 280 uint32 time_offset_ms_; | 282 uint32 time_offset_ms_; |
| 281 int click_count_; | 283 int click_count_; |
| 284 // Timestamp (in seconds) of the last event that was dispatched |
| 285 double last_event_timestamp_; |
| 282 | 286 |
| 283 base::WeakPtrFactory<EventSender> weak_factory_; | 287 base::WeakPtrFactory<EventSender> weak_factory_; |
| 284 | 288 |
| 285 DISALLOW_COPY_AND_ASSIGN(EventSender); | 289 DISALLOW_COPY_AND_ASSIGN(EventSender); |
| 286 }; | 290 }; |
| 287 | 291 |
| 288 } // namespace test_runner | 292 } // namespace test_runner |
| 289 | 293 |
| 290 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ | 294 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ |
| OLD | NEW |