| 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 CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // Simulate a mouse wheel event. | 123 // Simulate a mouse wheel event. |
| 124 void SimulateMouseWheelEvent(WebContents* web_contents, | 124 void SimulateMouseWheelEvent(WebContents* web_contents, |
| 125 const gfx::Point& point, | 125 const gfx::Point& point, |
| 126 const gfx::Vector2d& delta); | 126 const gfx::Vector2d& delta); |
| 127 | 127 |
| 128 // Sends a simple, three-event (Begin/Update/End) gesture scroll. | 128 // Sends a simple, three-event (Begin/Update/End) gesture scroll. |
| 129 void SimulateGestureScrollSequence(WebContents* web_contents, | 129 void SimulateGestureScrollSequence(WebContents* web_contents, |
| 130 const gfx::Point& point, | 130 const gfx::Point& point, |
| 131 const gfx::Vector2dF& delta); | 131 const gfx::Vector2dF& delta); |
| 132 | 132 |
| 133 void SimulateGestureFlingSequence(WebContents* web_contents, |
| 134 const gfx::Point& point, |
| 135 const gfx::Vector2dF& velocity); |
| 136 |
| 133 // Taps the screen at |point|. | 137 // Taps the screen at |point|. |
| 134 void SimulateTapAt(WebContents* web_contents, const gfx::Point& point); | 138 void SimulateTapAt(WebContents* web_contents, const gfx::Point& point); |
| 135 | 139 |
| 136 #if defined(USE_AURA) | 140 #if defined(USE_AURA) |
| 137 // Generates a TouchStart at |point|. | 141 // Generates a TouchStart at |point|. |
| 138 void SimulateTouchPressAt(WebContents* web_contents, const gfx::Point& point); | 142 void SimulateTouchPressAt(WebContents* web_contents, const gfx::Point& point); |
| 139 #endif | 143 #endif |
| 140 | 144 |
| 141 // Taps the screen with modifires at |point|. | 145 // Taps the screen with modifires at |point|. |
| 142 void SimulateTapWithModifiersAt(WebContents* web_contents, | 146 void SimulateTapWithModifiersAt(WebContents* web_contents, |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 blink::WebInputEvent::Type wait_for_type_; | 516 blink::WebInputEvent::Type wait_for_type_; |
| 513 uint32_t ack_result_; | 517 uint32_t ack_result_; |
| 514 base::Closure quit_; | 518 base::Closure quit_; |
| 515 | 519 |
| 516 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher); | 520 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher); |
| 517 }; | 521 }; |
| 518 | 522 |
| 519 } // namespace content | 523 } // namespace content |
| 520 | 524 |
| 521 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 525 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| OLD | NEW |