OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_AURA_TEST_EVENT_GENERATOR_H_ | 5 #ifndef UI_AURA_TEST_EVENT_GENERATOR_H_ |
6 #define UI_AURA_TEST_EVENT_GENERATOR_H_ | 6 #define UI_AURA_TEST_EVENT_GENERATOR_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 181 |
182 // Generates a touch press event with |touch_id|. | 182 // Generates a touch press event with |touch_id|. |
183 void PressTouchId(int touch_id); | 183 void PressTouchId(int touch_id); |
184 | 184 |
185 // Generates a ET_TOUCH_MOVED event to |point|. | 185 // Generates a ET_TOUCH_MOVED event to |point|. |
186 void MoveTouch(const gfx::Point& point); | 186 void MoveTouch(const gfx::Point& point); |
187 | 187 |
188 // Generates a ET_TOUCH_MOVED event to |point| with |touch_id|. | 188 // Generates a ET_TOUCH_MOVED event to |point| with |touch_id|. |
189 void MoveTouchId(const gfx::Point& point, int touch_id); | 189 void MoveTouchId(const gfx::Point& point, int touch_id); |
190 | 190 |
| 191 // Generates ET_TOUCH_STATIONARY event. |
| 192 void StationaryTouch(); |
| 193 |
| 194 // Generates ET_TOUCH_STATIONARY event with |touch_id|. |
| 195 void StationaryTouchId(int touch_id); |
| 196 |
191 // Generates a touch release event. | 197 // Generates a touch release event. |
192 void ReleaseTouch(); | 198 void ReleaseTouch(); |
193 | 199 |
194 // Generates a touch release event with |touch_id|. | 200 // Generates a touch release event with |touch_id|. |
195 void ReleaseTouchId(int touch_id); | 201 void ReleaseTouchId(int touch_id); |
196 | 202 |
197 // Generates press, move and release event to move touch | 203 // Generates press, move and release event to move touch |
198 // to be the given |point|. | 204 // to be the given |point|. |
199 void PressMoveAndReleaseTouchTo(const gfx::Point& point); | 205 void PressMoveAndReleaseTouchTo(const gfx::Point& point); |
200 | 206 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 // Set to true to cause events to be posted asynchronously. | 350 // Set to true to cause events to be posted asynchronously. |
345 bool async_; | 351 bool async_; |
346 | 352 |
347 DISALLOW_COPY_AND_ASSIGN(EventGenerator); | 353 DISALLOW_COPY_AND_ASSIGN(EventGenerator); |
348 }; | 354 }; |
349 | 355 |
350 } // namespace test | 356 } // namespace test |
351 } // namespace aura | 357 } // namespace aura |
352 | 358 |
353 #endif // UI_AURA_TEST_EVENT_GENERATOR_H_ | 359 #endif // UI_AURA_TEST_EVENT_GENERATOR_H_ |
OLD | NEW |