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 b074fb4ef2dc2530894c7e95bbaa104d4c235832..4c645011aae4fa311105f99f8804ccb9a5c1a7c4 100644 |
--- a/content/public/test/browser_test_utils.h |
+++ b/content/public/test/browser_test_utils.h |
@@ -57,6 +57,14 @@ GURL GetFileUrlWithQuery(const base::FilePath& path, |
// tab is currently web_contents. Otherwise returns immediately. |
void WaitForLoadStop(WebContents* web_contents); |
+#if defined(USE_AURA) |
+// If WebContent's view is currently being resized, this will wait for the ack |
+// from the renderer that the resize is complete and for the |
+// WindowEventDispatcher to release the pointer moves. If there's no resize in |
+// progress, the method will return right away. |
+void WaitForResizeComplete(WebContents* web_contents); |
+#endif // USE_AURA |
+ |
// Causes the specified web_contents to crash. Blocks until it is crashed. |
void CrashTab(WebContents* web_contents); |