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 54 matching lines...) Loading... |
65 } | 65 } |
66 | 66 |
67 private: | 67 private: |
68 friend class EventSenderBindings; | 68 friend class EventSenderBindings; |
69 | 69 |
70 void MouseDown(int button_number, int modifiers); | 70 void MouseDown(int button_number, int modifiers); |
71 void MouseUp(int button_number, int modifiers); | 71 void MouseUp(int button_number, int modifiers); |
72 void PointerDown(int button_number, | 72 void PointerDown(int button_number, |
73 int modifiers, | 73 int modifiers, |
74 blink::WebPointerProperties::PointerType, | 74 blink::WebPointerProperties::PointerType, |
75 int pointerId); | 75 int pointerId, |
| 76 float pressure, |
| 77 int tiltX, |
| 78 int tiltY); |
76 void PointerUp(int button_number, | 79 void PointerUp(int button_number, |
77 int modifiers, | 80 int modifiers, |
78 blink::WebPointerProperties::PointerType, | 81 blink::WebPointerProperties::PointerType, |
79 int pointerId); | 82 int pointerId, |
| 83 float pressure, |
| 84 int tiltX, |
| 85 int tiltY); |
80 void SetMouseButtonState(int button_number, int modifiers); | 86 void SetMouseButtonState(int button_number, int modifiers); |
81 | 87 |
82 void KeyDown(const std::string& code_str, | 88 void KeyDown(const std::string& code_str, |
83 int modifiers, | 89 int modifiers, |
84 KeyLocationCode location); | 90 KeyLocationCode location); |
85 | 91 |
86 struct SavedEvent { | 92 struct SavedEvent { |
87 enum SavedEventType { | 93 enum SavedEventType { |
88 TYPE_UNSPECIFIED, | 94 TYPE_UNSPECIFIED, |
89 TYPE_MOUSE_UP, | 95 TYPE_MOUSE_UP, |
(...skipping 229 matching lines...) Loading... |
319 double last_event_timestamp_; | 325 double last_event_timestamp_; |
320 | 326 |
321 base::WeakPtrFactory<EventSender> weak_factory_; | 327 base::WeakPtrFactory<EventSender> weak_factory_; |
322 | 328 |
323 DISALLOW_COPY_AND_ASSIGN(EventSender); | 329 DISALLOW_COPY_AND_ASSIGN(EventSender); |
324 }; | 330 }; |
325 | 331 |
326 } // namespace test_runner | 332 } // namespace test_runner |
327 | 333 |
328 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ | 334 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ |
OLD | NEW |