Index: content/public/test/layouttest_support.h |
diff --git a/content/public/test/layouttest_support.h b/content/public/test/layouttest_support.h |
index a188bb78bdb883280ff8a2582f393df59b12f817..5451e8576950cb41b6024f50f5c362f4b86417ca 100644 |
--- a/content/public/test/layouttest_support.h |
+++ b/content/public/test/layouttest_support.h |
@@ -25,6 +25,7 @@ class WebGamepads; |
class WebLayer; |
struct WebSize; |
class WebView; |
+class WebWidget; |
class WebURLResponse; |
} |
@@ -35,6 +36,7 @@ class BluetoothAdapter; |
namespace test_runner { |
class WebFrameTestProxyBase; |
class WebViewTestProxyBase; |
+class WebWidgetTestProxyBase; |
} |
namespace content { |
@@ -43,6 +45,7 @@ class PageState; |
class RenderFrame; |
class RendererGamepadProvider; |
class RenderView; |
+class RenderWidget; |
// Turn the browser process into layout test mode. |
void EnableBrowserLayoutTestMode(); |
@@ -65,16 +68,23 @@ test_runner::WebViewTestProxyBase* GetWebViewTestProxyBase( |
test_runner::WebFrameTestProxyBase* GetWebFrameTestProxyBase( |
RenderFrame* render_frame); |
-// Enable injecting of a WebViewTestProxy between WebViews and RenderViews |
-// and WebFrameTestProxy between WebFrames and RenderFrames. |
+// Enable injecting of a WebViewTestProxy between WebViews and RenderViews, |
+// WebWidgets and RenderWidgets and WebFrameTestProxy between WebFrames and |
Łukasz Anforowicz
2016/08/02 20:38:12
s/WebWidgets and RenderWidgets/WebWidgetTestProxy
lfg
2016/08/02 22:27:21
Done.
|
+// RenderFrames. |
// |view_proxy_creation_callback| is invoked after creating WebViewTestProxy. |
+// |widget_proxy_creation_callback| is invoked after creating |
+// WebWidgetTestProxy. |
// |frame_proxy_creation_callback| is called after creating WebFrameTestProxy. |
using ViewProxyCreationCallback = |
base::Callback<void(RenderView*, test_runner::WebViewTestProxyBase*)>; |
+using WidgetProxyCreationCallback = |
+ base::Callback<void(blink::WebWidget*, |
+ test_runner::WebWidgetTestProxyBase*)>; |
using FrameProxyCreationCallback = |
base::Callback<void(RenderFrame*, test_runner::WebFrameTestProxyBase*)>; |
void EnableWebTestProxyCreation( |
const ViewProxyCreationCallback& view_proxy_creation_callback, |
+ const WidgetProxyCreationCallback& widget_proxy_creation_callback, |
const FrameProxyCreationCallback& frame_proxy_creation_callback); |
typedef base::Callback<void(const blink::WebURLResponse& response, |