| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 // Generates a double click event using the left button. | 129 // Generates a double click event using the left button. |
| 130 void DoubleClickLeftButton(); | 130 void DoubleClickLeftButton(); |
| 131 | 131 |
| 132 // Generates a right button press event. | 132 // Generates a right button press event. |
| 133 void PressRightButton(); | 133 void PressRightButton(); |
| 134 | 134 |
| 135 // Generates a right button release event. | 135 // Generates a right button release event. |
| 136 void ReleaseRightButton(); | 136 void ReleaseRightButton(); |
| 137 | 137 |
| 138 // Generates a mouse exit. |
| 139 void SendMouseExit(); |
| 140 |
| 138 // Generates events to move mouse to be the given |point| in the | 141 // Generates events to move mouse to be the given |point| in the |
| 139 // |current_root_window_|'s host window coordinates. | 142 // |current_root_window_|'s host window coordinates. |
| 140 void MoveMouseToInHost(const gfx::Point& point_in_host); | 143 void MoveMouseToInHost(const gfx::Point& point_in_host); |
| 141 void MoveMouseToInHost(int x, int y) { | 144 void MoveMouseToInHost(int x, int y) { |
| 142 MoveMouseToInHost(gfx::Point(x, y)); | 145 MoveMouseToInHost(gfx::Point(x, y)); |
| 143 } | 146 } |
| 144 | 147 |
| 145 // Generates events to move mouse to be the given |point| in screen | 148 // Generates events to move mouse to be the given |point| in screen |
| 146 // coordinates. | 149 // coordinates. |
| 147 void MoveMouseTo(const gfx::Point& point_in_screen, int count); | 150 void MoveMouseTo(const gfx::Point& point_in_screen, int count); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 // Set to true to cause events to be posted asynchronously. | 314 // Set to true to cause events to be posted asynchronously. |
| 312 bool async_; | 315 bool async_; |
| 313 | 316 |
| 314 DISALLOW_COPY_AND_ASSIGN(EventGenerator); | 317 DISALLOW_COPY_AND_ASSIGN(EventGenerator); |
| 315 }; | 318 }; |
| 316 | 319 |
| 317 } // namespace test | 320 } // namespace test |
| 318 } // namespace aura | 321 } // namespace aura |
| 319 | 322 |
| 320 #endif // UI_AURA_TEST_EVENT_GENERATOR_H_ | 323 #endif // UI_AURA_TEST_EVENT_GENERATOR_H_ |
| OLD | NEW |