Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(875)

Unified Diff: content/public/test/browser_test_utils.h

Issue 2797473005: Fix interstitials on OOPIF-based guests. (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f5b609bba5d43934b574b3da2cbf337e5a3c8a2c 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,22 @@ 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);
+
+// Route the |event| through the RenderWidgetHostInputEventRouter. This allows
+// correct targeting of events to out of process iframes.
+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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698