From caab514ea9a212c7a0cbdc6a001a86736451679f Mon Sep 17 00:00:00 2001 From: lfg Date: Fri, 26 Feb 2016 11:06:52 -0800 Subject: Sets a transparent background for out-of-process subframes by default. This CL moves background color from WebView to WebFrameWidget, which allows for setting the background color independently per local root. WebViewImpl still implements background color for the main frame, but it now goes through a WebViewFrameWidget interface. BUG=515625 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1565893004 Cr-Commit-Position: refs/heads/master@{#377937} --- content/public/renderer/render_view.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'content/public/renderer') diff --git a/content/public/renderer/render_view.h b/content/public/renderer/render_view.h index d02fa8f..f913f64 100644 --- a/content/public/renderer/render_view.h +++ b/content/public/renderer/render_view.h @@ -21,6 +21,7 @@ namespace blink { class WebElement; class WebFrame; +class WebFrameWidget; class WebLocalFrame; class WebNode; class WebString; @@ -88,6 +89,9 @@ class CONTENT_EXPORT RenderView : public IPC::Sender { // Returns the associated WebView. May return NULL when the view is closing. virtual blink::WebView* GetWebView() = 0; + // Returns the associated WebFrameWidget. + virtual blink::WebFrameWidget* GetWebFrameWidget() = 0; + // Returns true if we should display scrollbars for the given view size and // false if the scrollbars should be hidden. virtual bool ShouldDisplayScrollbars(int width, int height) const = 0; -- cgit v1.1