summaryrefslogtreecommitdiffstats
path: root/content/public/renderer
diff options
context:
space:
mode:
authorlfg <lfg@chromium.org>2016-02-26 11:06:52 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-26 19:08:08 +0000
commitcaab514ea9a212c7a0cbdc6a001a86736451679f (patch)
tree62859aa30f15ff49586f1bf8fb616f85cdf4da45 /content/public/renderer
parentf811720b434bea702c04c0f6d3a2664b31f52300 (diff)
downloadchromium_src-caab514ea9a212c7a0cbdc6a001a86736451679f.zip
chromium_src-caab514ea9a212c7a0cbdc6a001a86736451679f.tar.gz
chromium_src-caab514ea9a212c7a0cbdc6a001a86736451679f.tar.bz2
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}
Diffstat (limited to 'content/public/renderer')
-rw-r--r--content/public/renderer/render_view.h4
1 files changed, 4 insertions, 0 deletions
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;