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

Unified Diff: content/renderer/render_widget.h

Issue 2174663005: Add WebWidgetTestProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 27f71b3bc552e5e10c871e9a0b774a5ea8bfee01..fbe826b77897d20f9b31d485378bc0f27983c53a 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -127,6 +127,16 @@ class CONTENT_EXPORT RenderWidget
CompositorDependencies* compositor_deps,
blink::WebLocalFrame* frame);
+ using CreateRenderWidgetFunction =
+ RenderWidget* (*)(CompositorDependencies*,
+ blink::WebPopupType,
+ const blink::WebScreenInfo&,
+ bool,
+ bool,
+ bool);
+ static void InstallCreateHook(
+ CreateRenderWidgetFunction create_render_widget);
Łukasz Anforowicz 2016/08/02 20:38:12 Perhaps we might want to indicate (with a comment?
lfg 2016/08/02 22:27:21 Done.
+
// Closes a RenderWidget that was created by |CreateForFrame|.
// TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget.
// https://crbug.com/545684

Powered by Google App Engine
This is Rietveld 408576698