Chromium Code Reviews| 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..93d0314803d1715d27ece12ff148779c28a57545 100644 |
| --- a/third_party/WebKit/public/web/WebFrameWidget.h |
| +++ b/third_party/WebKit/public/web/WebFrameWidget.h |
| @@ -55,6 +55,25 @@ 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; |
| + |
| + // Overrides the background color for this WebFrameWidget. |
| + virtual void setBackgroundColorOverride(WebColor) = 0; |
|
dcheng
2016/02/10 22:13:44
Does this need to be the in public layer? I don't
lfg
2016/02/10 23:20:24
If I remember correctly, when I did this I was pla
|
| + virtual WebColor backgroundColorOverride() const = 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 |