| 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 | 332 |
| 333 // Send a TouchStart/End sequence routed via the main frame's | 333 // Send a TouchStart/End sequence routed via the main frame's |
| 334 // RenderWidgetHostViewAura. | 334 // RenderWidgetHostViewAura. |
| 335 void SendRoutedTouchTapSequence(content::WebContents* web_contents, | 335 void SendRoutedTouchTapSequence(content::WebContents* web_contents, |
| 336 gfx::Point point); | 336 gfx::Point point); |
| 337 | 337 |
| 338 // Send a GestureTapDown/GestureTap sequence routed via the main frame's | 338 // Send a GestureTapDown/GestureTap sequence routed via the main frame's |
| 339 // RenderWidgetHostViewAura. | 339 // RenderWidgetHostViewAura. |
| 340 void SendRoutedGestureTapSequence(content::WebContents* web_contents, | 340 void SendRoutedGestureTapSequence(content::WebContents* web_contents, |
| 341 gfx::Point point); | 341 gfx::Point point); |
| 342 // | 342 |
| 343 // Waits until the cc::Surface associated with a guest/cross-process-iframe | 343 // Waits until the cc::Surface associated with a guest/cross-process-iframe |
| 344 // has been drawn for the first time. Once this method returns it should be | 344 // has been drawn for the first time. Once this method returns it should be |
| 345 // safe to assume that events sent to the top-level RenderWidgetHostView can | 345 // safe to assume that events sent to the top-level RenderWidgetHostView can |
| 346 // be expected to properly hit-test to this surface, if appropriate. | 346 // be expected to properly hit-test to this surface, if appropriate. |
| 347 void WaitForGuestSurfaceReady(content::WebContents* web_contents); | 347 void WaitForGuestSurfaceReady(content::WebContents* web_contents); |
| 348 | 348 |
| 349 // Waits until the cc::Surface associated with a cross-process child frame |
| 350 // has been drawn for the first time. Once this method returns it should be |
| 351 // safe to assume that events sent to the top-level RenderWidgetHostView can |
| 352 // be expected to properly hit-test to this surface, if appropriate. |
| 353 void WaitForChildFrameSurfaceReady(content::RenderFrameHost* child_frame); |
| 354 |
| 349 #endif | 355 #endif |
| 350 | 356 |
| 351 // Watches title changes on a WebContents, blocking until an expected title is | 357 // Watches title changes on a WebContents, blocking until an expected title is |
| 352 // set. | 358 // set. |
| 353 class TitleWatcher : public WebContentsObserver { | 359 class TitleWatcher : public WebContentsObserver { |
| 354 public: | 360 public: |
| 355 // |web_contents| must be non-NULL and needs to stay alive for the | 361 // |web_contents| must be non-NULL and needs to stay alive for the |
| 356 // entire lifetime of |this|. |expected_title| is the title that |this| | 362 // entire lifetime of |this|. |expected_title| is the title that |this| |
| 357 // will wait for. | 363 // will wait for. |
| 358 TitleWatcher(WebContents* web_contents, | 364 TitleWatcher(WebContents* web_contents, |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 | 765 |
| 760 private: | 766 private: |
| 761 PwnMessageHelper(); // Not instantiable. | 767 PwnMessageHelper(); // Not instantiable. |
| 762 | 768 |
| 763 DISALLOW_COPY_AND_ASSIGN(PwnMessageHelper); | 769 DISALLOW_COPY_AND_ASSIGN(PwnMessageHelper); |
| 764 }; | 770 }; |
| 765 | 771 |
| 766 } // namespace content | 772 } // namespace content |
| 767 | 773 |
| 768 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 774 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| OLD | NEW |