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

Unified Diff: third_party/WebKit/public/web/WebFrameWidget.h

Issue 1565893004: Sets a transparent background for out-of-process subframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile Created 4 years, 10 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 | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/public/web/WebView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebFrameWidget.h
diff --git a/third_party/WebKit/public/web/WebFrameWidget.h b/third_party/WebKit/public/web/WebFrameWidget.h
index 559de403bb2023347a3b759740969e2a13229239..72092e4eea815bbfdd1bafba34e1fb0b55649576 100644
--- a/third_party/WebKit/public/web/WebFrameWidget.h
+++ b/third_party/WebKit/public/web/WebFrameWidget.h
@@ -55,6 +55,21 @@ public:
// it needs to draw or not.
virtual void setVisibilityState(WebPageVisibilityState visibilityState, bool isInitialState) { }
+ // Makes the WebFrameWidget transparent. This is useful if you want to have
+ // some custom background rendered behind it.
+ virtual bool isTransparent() const = 0;
+ virtual void setIsTransparent(bool) = 0;
+
+ // Sets the base color used for this WebFrameWidget's background. This is in
+ // effect the default background color used for pages with no
+ // background-color style in effect, or used as the alpha-blended basis for
+ // any pages with translucent background-color style. (For pages with opaque
+ // background-color style, this property is effectively ignored).
+ // Setting this takes effect for the currently loaded page, if any, and
+ // persists across subsequent navigations. Defaults to white prior to the
+ // first call to this method.
+ virtual void setBaseBackgroundColor(WebColor) = 0;
+
// TODO(dcheng): Temporary: there should only be one WebFrameWidget
// implementation but the Blink API is currently in a transition state.
// See https://goo.gl/7yVrnb. These methods should only be used inside
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698