| 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 <queue> | 8 #include <queue> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 void TextZoomIn(); | 95 void TextZoomIn(); |
| 96 void TextZoomOut(); | 96 void TextZoomOut(); |
| 97 | 97 |
| 98 void ZoomPageIn(); | 98 void ZoomPageIn(); |
| 99 void ZoomPageOut(); | 99 void ZoomPageOut(); |
| 100 void SetPageZoomFactor(double zoom_factor); | 100 void SetPageZoomFactor(double zoom_factor); |
| 101 | 101 |
| 102 void ClearTouchPoints(); | 102 void ClearTouchPoints(); |
| 103 void ReleaseTouchPoint(unsigned index); | 103 void ReleaseTouchPoint(unsigned index); |
| 104 void UpdateTouchPoint(unsigned index, float x, float y); | 104 void UpdateTouchPoint(unsigned index, float x, float y, gin::Arguments* args); |
| 105 void CancelTouchPoint(unsigned index); | 105 void CancelTouchPoint(unsigned index); |
| 106 void SetTouchModifier(const std::string& key_name, bool set_mask); | 106 void SetTouchModifier(const std::string& key_name, bool set_mask); |
| 107 void SetTouchCancelable(bool cancelable); | 107 void SetTouchCancelable(bool cancelable); |
| 108 void ThrowTouchPointError(); | 108 void ThrowTouchPointError(); |
| 109 | 109 |
| 110 void DumpFilenameBeingDragged(); | 110 void DumpFilenameBeingDragged(); |
| 111 | 111 |
| 112 void GestureFlingCancel(); | 112 void GestureFlingCancel(); |
| 113 void GestureFlingStart(float x, | 113 void GestureFlingStart(float x, |
| 114 float y, | 114 float y, |
| 115 float velocity_x, | 115 float velocity_x, |
| 116 float velocity_y, | 116 float velocity_y, |
| 117 gin::Arguments* args); | 117 gin::Arguments* args); |
| 118 void GestureScrollFirstPoint(int x, int y); | 118 void GestureScrollFirstPoint(int x, int y); |
| 119 | 119 |
| 120 void TouchStart(); | 120 void TouchStart(); |
| 121 void TouchMove(); | 121 void TouchMove(); |
| 122 void TouchMoveCausingScrollIfUncanceled(); | 122 void TouchMoveCausingScrollIfUncanceled(); |
| 123 void TouchCancel(); | 123 void TouchCancel(); |
| 124 void TouchEnd(); | 124 void TouchEnd(); |
| 125 | 125 |
| 126 void LeapForward(int milliseconds); | 126 void LeapForward(int milliseconds); |
| 127 | 127 |
| 128 void BeginDragWithFiles(const std::vector<std::string>& files); | 128 void BeginDragWithFiles(const std::vector<std::string>& files); |
| 129 | 129 |
| 130 void AddTouchPoint(gin::Arguments* args); | 130 void AddTouchPoint(float x, float y, gin::Arguments* args); |
| 131 | 131 |
| 132 void MouseDragBegin(); | 132 void MouseDragBegin(); |
| 133 void MouseDragEnd(); | 133 void MouseDragEnd(); |
| 134 | 134 |
| 135 void GestureScrollBegin(gin::Arguments* args); | 135 void GestureScrollBegin(gin::Arguments* args); |
| 136 void GestureScrollEnd(gin::Arguments* args); | 136 void GestureScrollEnd(gin::Arguments* args); |
| 137 void GestureScrollUpdate(gin::Arguments* args); | 137 void GestureScrollUpdate(gin::Arguments* args); |
| 138 void GesturePinchBegin(gin::Arguments* args); | 138 void GesturePinchBegin(gin::Arguments* args); |
| 139 void GesturePinchEnd(gin::Arguments* args); | 139 void GesturePinchEnd(gin::Arguments* args); |
| 140 void GesturePinchUpdate(gin::Arguments* args); | 140 void GesturePinchUpdate(gin::Arguments* args); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 169 void SendCurrentTouchEvent(blink::WebInputEvent::Type, bool); | 169 void SendCurrentTouchEvent(blink::WebInputEvent::Type, bool); |
| 170 | 170 |
| 171 void GestureEvent(blink::WebInputEvent::Type, | 171 void GestureEvent(blink::WebInputEvent::Type, |
| 172 gin::Arguments*); | 172 gin::Arguments*); |
| 173 | 173 |
| 174 void UpdateClickCountForButton(blink::WebMouseEvent::Button); | 174 void UpdateClickCountForButton(blink::WebMouseEvent::Button); |
| 175 | 175 |
| 176 void InitMouseWheelEvent(gin::Arguments* args, | 176 void InitMouseWheelEvent(gin::Arguments* args, |
| 177 bool continuous, | 177 bool continuous, |
| 178 blink::WebMouseWheelEvent* event); | 178 blink::WebMouseWheelEvent* event); |
| 179 void InitPointerProperties(gin::Arguments* args, |
| 180 blink::WebPointerProperties* e, |
| 181 float* radius_x, |
| 182 float* radius_y); |
| 179 | 183 |
| 180 void FinishDragAndDrop(const blink::WebMouseEvent&, blink::WebDragOperation); | 184 void FinishDragAndDrop(const blink::WebMouseEvent&, blink::WebDragOperation); |
| 181 | 185 |
| 182 void DoMouseUp(const blink::WebMouseEvent&); | 186 void DoMouseUp(const blink::WebMouseEvent&); |
| 183 void DoMouseMove(const blink::WebMouseEvent&); | 187 void DoMouseMove(const blink::WebMouseEvent&); |
| 184 void ReplaySavedEvents(); | 188 void ReplaySavedEvents(); |
| 185 bool HandleInputEventOnViewOrPopup(const blink::WebInputEvent&); | 189 bool HandleInputEventOnViewOrPopup(const blink::WebInputEvent&); |
| 186 | 190 |
| 187 bool force_layout_on_events() const { return force_layout_on_events_; } | 191 bool force_layout_on_events() const { return force_layout_on_events_; } |
| 188 void set_force_layout_on_events(bool force) { | 192 void set_force_layout_on_events(bool force) { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 int click_count_; | 285 int click_count_; |
| 282 | 286 |
| 283 base::WeakPtrFactory<EventSender> weak_factory_; | 287 base::WeakPtrFactory<EventSender> weak_factory_; |
| 284 | 288 |
| 285 DISALLOW_COPY_AND_ASSIGN(EventSender); | 289 DISALLOW_COPY_AND_ASSIGN(EventSender); |
| 286 }; | 290 }; |
| 287 | 291 |
| 288 } // namespace test_runner | 292 } // namespace test_runner |
| 289 | 293 |
| 290 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ | 294 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ |
| OLD | NEW |