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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 void ZoomPageIn(); | 100 void ZoomPageIn(); |
101 void ZoomPageOut(); | 101 void ZoomPageOut(); |
102 | 102 |
103 void SetPageScaleFactor(float scale_factor, int x, int y); | 103 void SetPageScaleFactor(float scale_factor, int x, int y); |
104 | 104 |
105 void ClearTouchPoints(); | 105 void ClearTouchPoints(); |
106 void ReleaseTouchPoint(unsigned index); | 106 void ReleaseTouchPoint(unsigned index); |
107 void UpdateTouchPoint(unsigned index, int x, int y); | 107 void UpdateTouchPoint(unsigned index, int x, int y); |
108 void CancelTouchPoint(unsigned index); | 108 void CancelTouchPoint(unsigned index); |
109 void SetTouchModifier(const std::string& key_name, bool set_mask); | 109 void SetTouchModifier(const std::string& key_name, bool set_mask); |
| 110 void SetTouchCancelable(bool cancelable); |
110 void ThrowTouchPointError(); | 111 void ThrowTouchPointError(); |
111 | 112 |
112 void DumpFilenameBeingDragged(); | 113 void DumpFilenameBeingDragged(); |
113 | 114 |
114 void GestureFlingCancel(); | 115 void GestureFlingCancel(); |
115 void GestureFlingStart(float x, float y, float velocity_x, float velocity_y); | 116 void GestureFlingStart(float x, float y, float velocity_x, float velocity_y); |
116 void GestureScrollFirstPoint(int x, int y); | 117 void GestureScrollFirstPoint(int x, int y); |
117 | 118 |
118 void TouchStart(); | 119 void TouchStart(); |
119 void TouchMove(); | 120 void TouchMove(); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 WebTestRunner::WebTestDelegate* delegate_; | 226 WebTestRunner::WebTestDelegate* delegate_; |
226 blink::WebView* view_; | 227 blink::WebView* view_; |
227 | 228 |
228 bool force_layout_on_events_; | 229 bool force_layout_on_events_; |
229 | 230 |
230 // When set to true (the default value), we batch mouse move and mouse up | 231 // When set to true (the default value), we batch mouse move and mouse up |
231 // events so we can simulate drag & drop. | 232 // events so we can simulate drag & drop. |
232 bool is_drag_mode_; | 233 bool is_drag_mode_; |
233 | 234 |
234 int touch_modifiers_; | 235 int touch_modifiers_; |
| 236 bool touch_cancelable_; |
235 std::vector<blink::WebTouchPoint> touch_points_; | 237 std::vector<blink::WebTouchPoint> touch_points_; |
236 | 238 |
237 scoped_ptr<blink::WebContextMenuData> last_context_menu_data_; | 239 scoped_ptr<blink::WebContextMenuData> last_context_menu_data_; |
238 | 240 |
239 blink::WebDragData current_drag_data_; | 241 blink::WebDragData current_drag_data_; |
240 | 242 |
241 // Location of the touch point that initiated a gesture. | 243 // Location of the touch point that initiated a gesture. |
242 blink::WebPoint current_gesture_location_; | 244 blink::WebPoint current_gesture_location_; |
243 | 245 |
244 // Currently pressed mouse button (Left/Right/Middle or None). | 246 // Currently pressed mouse button (Left/Right/Middle or None). |
(...skipping 22 matching lines...) Expand all Loading... |
267 int click_count_; | 269 int click_count_; |
268 | 270 |
269 base::WeakPtrFactory<EventSender> weak_factory_; | 271 base::WeakPtrFactory<EventSender> weak_factory_; |
270 | 272 |
271 DISALLOW_COPY_AND_ASSIGN(EventSender); | 273 DISALLOW_COPY_AND_ASSIGN(EventSender); |
272 }; | 274 }; |
273 | 275 |
274 } // namespace content | 276 } // namespace content |
275 | 277 |
276 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ | 278 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ |
OLD | NEW |