| 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 <queue> | 11 #include <queue> |
| 11 #include <string> | 12 #include <string> |
| 12 #include <unordered_map> | 13 #include <unordered_map> |
| 13 #include <vector> | 14 #include <vector> |
| 14 | 15 |
| 15 #include "base/macros.h" | 16 #include "base/macros.h" |
| 16 #include "base/memory/scoped_ptr.h" | |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 19 #include "third_party/WebKit/public/platform/WebDragData.h" | 19 #include "third_party/WebKit/public/platform/WebDragData.h" |
| 20 #include "third_party/WebKit/public/platform/WebDragOperation.h" | 20 #include "third_party/WebKit/public/platform/WebDragOperation.h" |
| 21 #include "third_party/WebKit/public/platform/WebInputEventResult.h" | 21 #include "third_party/WebKit/public/platform/WebInputEventResult.h" |
| 22 #include "third_party/WebKit/public/platform/WebPoint.h" | 22 #include "third_party/WebKit/public/platform/WebPoint.h" |
| 23 #include "third_party/WebKit/public/web/WebInputEvent.h" | 23 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 24 #include "third_party/WebKit/public/web/WebTouchPoint.h" | 24 #include "third_party/WebKit/public/web/WebTouchPoint.h" |
| 25 | 25 |
| 26 namespace blink { | 26 namespace blink { |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 bool force_layout_on_events_; | 258 bool force_layout_on_events_; |
| 259 | 259 |
| 260 // When set to true (the default value), we batch mouse move and mouse up | 260 // When set to true (the default value), we batch mouse move and mouse up |
| 261 // events so we can simulate drag & drop. | 261 // events so we can simulate drag & drop. |
| 262 bool is_drag_mode_; | 262 bool is_drag_mode_; |
| 263 | 263 |
| 264 int touch_modifiers_; | 264 int touch_modifiers_; |
| 265 bool touch_cancelable_; | 265 bool touch_cancelable_; |
| 266 std::vector<blink::WebTouchPoint> touch_points_; | 266 std::vector<blink::WebTouchPoint> touch_points_; |
| 267 | 267 |
| 268 scoped_ptr<blink::WebContextMenuData> last_context_menu_data_; | 268 std::unique_ptr<blink::WebContextMenuData> last_context_menu_data_; |
| 269 | 269 |
| 270 blink::WebDragData current_drag_data_; | 270 blink::WebDragData current_drag_data_; |
| 271 | 271 |
| 272 // Location of the touch point that initiated a gesture. | 272 // Location of the touch point that initiated a gesture. |
| 273 blink::WebPoint current_gesture_location_; | 273 blink::WebPoint current_gesture_location_; |
| 274 | 274 |
| 275 | 275 |
| 276 // Mouse-like pointer properties. | 276 // Mouse-like pointer properties. |
| 277 struct PointerState { | 277 struct PointerState { |
| 278 // Last pressed button (Left/Right/Middle or None). | 278 // Last pressed button (Left/Right/Middle or None). |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 double last_event_timestamp_; | 318 double last_event_timestamp_; |
| 319 | 319 |
| 320 base::WeakPtrFactory<EventSender> weak_factory_; | 320 base::WeakPtrFactory<EventSender> weak_factory_; |
| 321 | 321 |
| 322 DISALLOW_COPY_AND_ASSIGN(EventSender); | 322 DISALLOW_COPY_AND_ASSIGN(EventSender); |
| 323 }; | 323 }; |
| 324 | 324 |
| 325 } // namespace test_runner | 325 } // namespace test_runner |
| 326 | 326 |
| 327 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ | 327 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ |
| OLD | NEW |