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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 void GestureFlingCancel(); | 128 void GestureFlingCancel(); |
129 void GestureFlingStart(float x, | 129 void GestureFlingStart(float x, |
130 float y, | 130 float y, |
131 float velocity_x, | 131 float velocity_x, |
132 float velocity_y, | 132 float velocity_y, |
133 gin::Arguments* args); | 133 gin::Arguments* args); |
134 bool IsFlinging() const; | 134 bool IsFlinging() const; |
135 void GestureScrollFirstPoint(int x, int y); | 135 void GestureScrollFirstPoint(int x, int y); |
136 | 136 |
137 bool GetMovedBeyondSlopRegionArg(gin::Arguments* args); | 137 bool GetMovedBeyondSlopRegionArg(gin::Arguments* args); |
| 138 uint32_t GetUniqueTouchEventId(gin::Arguments* args); |
138 void TouchStart(gin::Arguments* args); | 139 void TouchStart(gin::Arguments* args); |
139 void TouchMove(gin::Arguments* args); | 140 void TouchMove(gin::Arguments* args); |
140 void TouchCancel(gin::Arguments* args); | 141 void TouchCancel(gin::Arguments* args); |
141 void TouchEnd(gin::Arguments* args); | 142 void TouchEnd(gin::Arguments* args); |
142 void NotifyStartOfTouchScroll(); | 143 void NotifyStartOfTouchScroll(); |
143 | 144 |
144 void LeapForward(int milliseconds); | 145 void LeapForward(int milliseconds); |
145 | 146 |
146 void BeginDragWithFiles(const std::vector<std::string>& files); | 147 void BeginDragWithFiles(const std::vector<std::string>& files); |
147 | 148 |
(...skipping 18 matching lines...) Expand all Loading... |
166 void MouseLeave(); | 167 void MouseLeave(); |
167 void ScheduleAsynchronousClick(int button_number, int modifiers); | 168 void ScheduleAsynchronousClick(int button_number, int modifiers); |
168 void ScheduleAsynchronousKeyDown(const std::string& code_str, | 169 void ScheduleAsynchronousKeyDown(const std::string& code_str, |
169 int modifiers, | 170 int modifiers, |
170 KeyLocationCode location); | 171 KeyLocationCode location); |
171 | 172 |
172 double GetCurrentEventTimeSec(); | 173 double GetCurrentEventTimeSec(); |
173 | 174 |
174 void DoLeapForward(int milliseconds); | 175 void DoLeapForward(int milliseconds); |
175 | 176 |
176 void SendCurrentTouchEvent(blink::WebInputEvent::Type, bool); | 177 void SendCurrentTouchEvent(blink::WebInputEvent::Type, bool, uint32_t); |
177 | 178 |
178 void GestureEvent(blink::WebInputEvent::Type, | 179 void GestureEvent(blink::WebInputEvent::Type, |
179 gin::Arguments*); | 180 gin::Arguments*); |
180 | 181 |
181 void UpdateClickCountForButton(blink::WebMouseEvent::Button); | 182 void UpdateClickCountForButton(blink::WebMouseEvent::Button); |
182 | 183 |
183 void InitMouseWheelEvent(gin::Arguments* args, | 184 void InitMouseWheelEvent(gin::Arguments* args, |
184 MouseScrollType scroll_type, | 185 MouseScrollType scroll_type, |
185 blink::WebMouseWheelEvent* event, | 186 blink::WebMouseWheelEvent* event, |
186 bool* send_gestures); | 187 bool* send_gestures); |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 double last_event_timestamp_; | 320 double last_event_timestamp_; |
320 | 321 |
321 base::WeakPtrFactory<EventSender> weak_factory_; | 322 base::WeakPtrFactory<EventSender> weak_factory_; |
322 | 323 |
323 DISALLOW_COPY_AND_ASSIGN(EventSender); | 324 DISALLOW_COPY_AND_ASSIGN(EventSender); |
324 }; | 325 }; |
325 | 326 |
326 } // namespace test_runner | 327 } // namespace test_runner |
327 | 328 |
328 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ | 329 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ |
OLD | NEW |