Chromium Code Reviews| Index: content/public/test/browser_test_utils.h |
| diff --git a/content/public/test/browser_test_utils.h b/content/public/test/browser_test_utils.h |
| index 00be458e9677252686f0b5de05669d6f2d919758..e329a050b8e44885ae41a47bd049b0b1bdd8c47f 100644 |
| --- a/content/public/test/browser_test_utils.h |
| +++ b/content/public/test/browser_test_utils.h |
| @@ -64,10 +64,12 @@ using test_server::EmbeddedTestServer; |
| namespace content { |
| class BrowserContext; |
| +class InterstitialPage; |
| class MessageLoopRunner; |
| class NavigationHandle; |
| class RenderViewHost; |
| class RenderWidgetHost; |
| +class RenderWidgetHostView; |
| class WebContents; |
| // Navigate a frame with ID |iframe_id| to |url|, blocking until the navigation |
| @@ -353,6 +355,21 @@ bool IsWebContentsBrowserPluginFocused(content::WebContents* web_contents); |
| // Returns the RenderWidgetHost that holds the mouse lock. |
| RenderWidgetHost* GetMouseLockWidget(WebContents* web_contents); |
| +// Returns true if inner |interstitial_page| is connected to an outer |
| +// WebContents. |
| +bool IsInnerInterstitialPageConnected(InterstitialPage* interstitial_page); |
| + |
| +// Returns all the RenderWidgetHostViews inside the |web_contents| that are |
| +// registered in the RenderWidgetHostInputEventRouter. |
| +std::vector<RenderWidgetHostView*> GetInputEventRouterRenderWidgetHostViews( |
| + WebContents* web_contents); |
| + |
| +// Returns the focused RenderWidgetHost. |
| +RenderWidgetHost* GetFocusedRenderWidgetHost(WebContents* web_contents); |
| + |
| +// Rout the |event| through the RenderWidgetHostInputEventRouter. |
|
kenrb
2017/04/07 17:06:31
You might want to elaborate this comment a bit. Th
|
| +void RouteMouseEvent(WebContents* web_contents, blink::WebMouseEvent* event); |
| + |
| #if defined(USE_AURA) |
| // The following two methods allow a test to send a touch tap sequence, and |
| // a corresponding gesture tap sequence, by sending it to the top-level |