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 CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ | 6 #define CONTENT_SHELL_RENDERER_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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 void ScheduleAsynchronousKeyDown(const std::string& code_str, | 158 void ScheduleAsynchronousKeyDown(const std::string& code_str, |
159 int modifiers, | 159 int modifiers, |
160 KeyLocationCode location); | 160 KeyLocationCode location); |
161 | 161 |
162 double GetCurrentEventTimeSec(); | 162 double GetCurrentEventTimeSec(); |
163 | 163 |
164 void DoLeapForward(int milliseconds); | 164 void DoLeapForward(int milliseconds); |
165 | 165 |
166 void SendCurrentTouchEvent(blink::WebInputEvent::Type); | 166 void SendCurrentTouchEvent(blink::WebInputEvent::Type); |
167 | 167 |
168 void GestureEvent(blink::WebInputEvent::Type, gin::Arguments*); | 168 void GestureEvent(blink::WebInputEvent::Type, |
| 169 gin::Arguments*, |
| 170 bool preventPropagation = false); |
169 | 171 |
170 void UpdateClickCountForButton(blink::WebMouseEvent::Button); | 172 void UpdateClickCountForButton(blink::WebMouseEvent::Button); |
171 | 173 |
172 void InitMouseWheelEvent(gin::Arguments* args, | 174 void InitMouseWheelEvent(gin::Arguments* args, |
173 bool continuous, | 175 bool continuous, |
174 blink::WebMouseWheelEvent* event); | 176 blink::WebMouseWheelEvent* event); |
175 | 177 |
176 void FinishDragAndDrop(const blink::WebMouseEvent&, blink::WebDragOperation); | 178 void FinishDragAndDrop(const blink::WebMouseEvent&, blink::WebDragOperation); |
177 | 179 |
178 void DoMouseUp(const blink::WebMouseEvent&); | 180 void DoMouseUp(const blink::WebMouseEvent&); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 int click_count_; | 277 int click_count_; |
276 | 278 |
277 base::WeakPtrFactory<EventSender> weak_factory_; | 279 base::WeakPtrFactory<EventSender> weak_factory_; |
278 | 280 |
279 DISALLOW_COPY_AND_ASSIGN(EventSender); | 281 DISALLOW_COPY_AND_ASSIGN(EventSender); |
280 }; | 282 }; |
281 | 283 |
282 } // namespace content | 284 } // namespace content |
283 | 285 |
284 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ | 286 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ |
OLD | NEW |