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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 void AddTouchPoint(gin::Arguments* args); | 127 void AddTouchPoint(gin::Arguments* args); |
128 | 128 |
129 void MouseDragBegin(); | 129 void MouseDragBegin(); |
130 void MouseDragEnd(); | 130 void MouseDragEnd(); |
131 | 131 |
132 void GestureScrollBegin(gin::Arguments* args); | 132 void GestureScrollBegin(gin::Arguments* args); |
133 void GestureScrollEnd(gin::Arguments* args); | 133 void GestureScrollEnd(gin::Arguments* args); |
134 void GestureScrollUpdate(gin::Arguments* args); | 134 void GestureScrollUpdate(gin::Arguments* args); |
135 void GestureScrollUpdateWithoutPropagation(gin::Arguments* args); | 135 void GestureScrollUpdateWithoutPropagation(gin::Arguments* args); |
136 void GestureTap(gin::Arguments* args); | 136 bool GestureTap(gin::Arguments* args); |
137 void GestureTapDown(gin::Arguments* args); | 137 void GestureTapDown(gin::Arguments* args); |
138 void GestureShowPress(gin::Arguments* args); | 138 void GestureShowPress(gin::Arguments* args); |
139 void GestureTapCancel(gin::Arguments* args); | 139 void GestureTapCancel(gin::Arguments* args); |
140 void GestureLongPress(gin::Arguments* args); | 140 void GestureLongPress(gin::Arguments* args); |
141 void GestureLongTap(gin::Arguments* args); | 141 void GestureLongTap(gin::Arguments* args); |
142 void GestureTwoFingerTap(gin::Arguments* args); | 142 void GestureTwoFingerTap(gin::Arguments* args); |
143 | 143 |
144 void ContinuousMouseScrollBy(gin::Arguments* args); | 144 void ContinuousMouseScrollBy(gin::Arguments* args); |
145 void MouseMoveTo(gin::Arguments* args); | 145 void MouseMoveTo(gin::Arguments* args); |
146 void TrackpadScrollBegin(); | 146 void TrackpadScrollBegin(); |
147 void TrackpadScroll(gin::Arguments* args); | 147 void TrackpadScroll(gin::Arguments* args); |
148 void TrackpadScrollEnd(); | 148 void TrackpadScrollEnd(); |
149 void MouseScrollBy(gin::Arguments* args); | 149 void MouseScrollBy(gin::Arguments* args); |
150 void MouseMomentumBegin(); | 150 void MouseMomentumBegin(); |
151 void MouseMomentumBegin2(gin::Arguments* args); | 151 void MouseMomentumBegin2(gin::Arguments* args); |
152 void MouseMomentumScrollBy(gin::Arguments* args); | 152 void MouseMomentumScrollBy(gin::Arguments* args); |
153 void MouseMomentumEnd(); | 153 void MouseMomentumEnd(); |
154 void ScheduleAsynchronousClick(int button_number, int modifiers); | 154 void ScheduleAsynchronousClick(int button_number, int modifiers); |
155 void ScheduleAsynchronousKeyDown(const std::string& code_str, | 155 void ScheduleAsynchronousKeyDown(const std::string& code_str, |
156 int modifiers, | 156 int modifiers, |
157 KeyLocationCode location); | 157 KeyLocationCode location); |
158 | 158 |
159 double GetCurrentEventTimeSec(); | 159 double GetCurrentEventTimeSec(); |
160 | 160 |
161 void DoLeapForward(int milliseconds); | 161 void DoLeapForward(int milliseconds); |
162 | 162 |
163 void SendCurrentTouchEvent(blink::WebInputEvent::Type); | 163 void SendCurrentTouchEvent(blink::WebInputEvent::Type); |
164 | 164 |
165 void GestureEvent(blink::WebInputEvent::Type, gin::Arguments*); | 165 bool GestureEvent(blink::WebInputEvent::Type, gin::Arguments*); |
166 | 166 |
167 void UpdateClickCountForButton(blink::WebMouseEvent::Button); | 167 void UpdateClickCountForButton(blink::WebMouseEvent::Button); |
168 | 168 |
169 void InitMouseWheelEvent(gin::Arguments* args, | 169 void InitMouseWheelEvent(gin::Arguments* args, |
170 bool continuous, | 170 bool continuous, |
171 blink::WebMouseWheelEvent* event); | 171 blink::WebMouseWheelEvent* event); |
172 | 172 |
173 void FinishDragAndDrop(const blink::WebMouseEvent&, blink::WebDragOperation); | 173 void FinishDragAndDrop(const blink::WebMouseEvent&, blink::WebDragOperation); |
174 | 174 |
175 void DoMouseUp(const blink::WebMouseEvent&); | 175 void DoMouseUp(const blink::WebMouseEvent&); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 int click_count_; | 272 int click_count_; |
273 | 273 |
274 base::WeakPtrFactory<EventSender> weak_factory_; | 274 base::WeakPtrFactory<EventSender> weak_factory_; |
275 | 275 |
276 DISALLOW_COPY_AND_ASSIGN(EventSender); | 276 DISALLOW_COPY_AND_ASSIGN(EventSender); |
277 }; | 277 }; |
278 | 278 |
279 } // namespace content | 279 } // namespace content |
280 | 280 |
281 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ | 281 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ |
OLD | NEW |