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

Unified Diff: content/renderer/render_widget.h

Issue 2174663005: Add WebWidgetTestProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comment 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 daee7170916a6f19d73599d623067aec40007639..c9587d67175cee8c1e44c33d6449e4af32cbefa4 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -127,6 +127,18 @@ 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);
+ static void InstallCreateHook(
+ CreateRenderWidgetFunction create_render_widget);
+
// 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