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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 blink::WebPopupType popup_type, 120 blink::WebPopupType popup_type,
121 const blink::WebScreenInfo& screen_info); 121 const blink::WebScreenInfo& screen_info);
122 122
123 // Creates a new RenderWidget that will be attached to a RenderFrame. 123 // Creates a new RenderWidget that will be attached to a RenderFrame.
124 static RenderWidget* CreateForFrame(int routing_id, 124 static RenderWidget* CreateForFrame(int routing_id,
125 bool hidden, 125 bool hidden,
126 const blink::WebScreenInfo& screen_info, 126 const blink::WebScreenInfo& screen_info,
127 CompositorDependencies* compositor_deps, 127 CompositorDependencies* compositor_deps,
128 blink::WebLocalFrame* frame); 128 blink::WebLocalFrame* frame);
129 129
130 using CreateRenderWidgetFunction =
131 RenderWidget* (*)(CompositorDependencies*,
132 blink::WebPopupType,
133 const blink::WebScreenInfo&,
134 bool,
135 bool,
136 bool);
137 static void InstallCreateHook(
138 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.
139
130 // Closes a RenderWidget that was created by |CreateForFrame|. 140 // Closes a RenderWidget that was created by |CreateForFrame|.
131 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget. 141 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget.
132 // https://crbug.com/545684 142 // https://crbug.com/545684
133 virtual void CloseForFrame(); 143 virtual void CloseForFrame();
134 144
135 int32_t routing_id() const { return routing_id_; } 145 int32_t routing_id() const { return routing_id_; }
136 void SetRoutingID(int32_t routing_id); 146 void SetRoutingID(int32_t routing_id);
137 147
138 CompositorDependencies* compositor_deps() const { return compositor_deps_; } 148 CompositorDependencies* compositor_deps() const { return compositor_deps_; }
139 blink::WebWidget* webwidget() const { return webwidget_; } 149 blink::WebWidget* webwidget() const { return webwidget_; }
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 // This reference is set by the RenderFrame and is used to query the IME- 791 // This reference is set by the RenderFrame and is used to query the IME-
782 // related state from the plugin to later send to the browser. 792 // related state from the plugin to later send to the browser.
783 PepperPluginInstanceImpl* focused_pepper_plugin_; 793 PepperPluginInstanceImpl* focused_pepper_plugin_;
784 794
785 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 795 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
786 }; 796 };
787 797
788 } // namespace content 798 } // namespace content
789 799
790 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 800 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698