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

Unified Diff: content/renderer/render_widget.h

Issue 2238573002: Add WebWidgetTestProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing files Created 4 years, 4 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/public/test/layouttest_support.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index e41360aea8e3b86eddd21ba14128671913be2565..fdf7b85337a14070fea1743781cff3bbcc5b7793 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -126,6 +126,20 @@ class CONTENT_EXPORT RenderWidget
CompositorDependencies* compositor_deps,
blink::WebLocalFrame* frame);
+ // Used by content_layouttest_support to hook into the creation of
+ // RenderWidgets.
+ using CreateRenderWidgetFunction =
+ RenderWidget* (*)(CompositorDependencies*,
+ blink::WebPopupType,
+ const blink::WebScreenInfo&,
+ bool,
+ bool,
+ bool);
+ using RenderWidgetInitializedCallback = void (*)(RenderWidget*);
+ static void InstallCreateHook(
+ CreateRenderWidgetFunction create_render_widget,
+ RenderWidgetInitializedCallback render_widget_initialized_callback);
+
// Closes a RenderWidget that was created by |CreateForFrame|.
// TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget.
// https://crbug.com/545684
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698