| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 void SimulateMouseClickAt(WebContents* web_contents, | 106 void SimulateMouseClickAt(WebContents* web_contents, |
| 107 int modifiers, | 107 int modifiers, |
| 108 blink::WebMouseEvent::Button button, | 108 blink::WebMouseEvent::Button button, |
| 109 const gfx::Point& point); | 109 const gfx::Point& point); |
| 110 | 110 |
| 111 // Simulates asynchronously a mouse enter/move/leave event. | 111 // Simulates asynchronously a mouse enter/move/leave event. |
| 112 void SimulateMouseEvent(WebContents* web_contents, | 112 void SimulateMouseEvent(WebContents* web_contents, |
| 113 blink::WebInputEvent::Type type, | 113 blink::WebInputEvent::Type type, |
| 114 const gfx::Point& point); | 114 const gfx::Point& point); |
| 115 | 115 |
| 116 // Simulate a mouse wheel event. |
| 117 void SimulateMouseWheelEvent(WebContents* web_contents, |
| 118 const gfx::Point& point, |
| 119 const gfx::Vector2d& delta); |
| 120 |
| 121 // Sends a simple, three-event (Begin/Update/End) gesture scroll. |
| 122 void SimulateGestureScrollSequence(WebContents* web_contents, |
| 123 const gfx::Point& point, |
| 124 const gfx::Vector2dF& delta); |
| 125 |
| 116 // Taps the screen at |point|. | 126 // Taps the screen at |point|. |
| 117 void SimulateTapAt(WebContents* web_contents, const gfx::Point& point); | 127 void SimulateTapAt(WebContents* web_contents, const gfx::Point& point); |
| 118 | 128 |
| 119 // Generates a TouchStart at |point|. | 129 // Generates a TouchStart at |point|. |
| 120 void SimulateTouchPressAt(WebContents* web_contents, const gfx::Point& point); | 130 void SimulateTouchPressAt(WebContents* web_contents, const gfx::Point& point); |
| 121 | 131 |
| 122 // Taps the screen with modifires at |point|. | 132 // Taps the screen with modifires at |point|. |
| 123 void SimulateTapWithModifiersAt(WebContents* web_contents, | 133 void SimulateTapWithModifiersAt(WebContents* web_contents, |
| 124 unsigned Modifiers, | 134 unsigned Modifiers, |
| 125 const gfx::Point& point); | 135 const gfx::Point& point); |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 | 420 |
| 411 int frames_to_wait_; | 421 int frames_to_wait_; |
| 412 base::Closure quit_; | 422 base::Closure quit_; |
| 413 | 423 |
| 414 DISALLOW_COPY_AND_ASSIGN(FrameWatcher); | 424 DISALLOW_COPY_AND_ASSIGN(FrameWatcher); |
| 415 }; | 425 }; |
| 416 | 426 |
| 417 } // namespace content | 427 } // namespace content |
| 418 | 428 |
| 419 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 429 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| OLD | NEW |