diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 23:19:14 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 23:19:14 +0000 |
commit | 699ab0da64a44444bc99108592004d1354f5f89f (patch) | |
tree | 05dd618d341567e26dc303b56baac155e5fe2d1a /webkit/glue/webview.h | |
parent | b547fd44ca39e90e6416da8a5ffc040fa9d2446c (diff) | |
download | chromium_src-699ab0da64a44444bc99108592004d1354f5f89f.zip chromium_src-699ab0da64a44444bc99108592004d1354f5f89f.tar.gz chromium_src-699ab0da64a44444bc99108592004d1354f5f89f.tar.bz2 |
Add transparency support to RenderWidgetHostView.
This is used to make the background behind toolstrips 'shine
through' them. It isn't possible to make them really transparent
due to cleartype (cleartype must know the pixels behind the text
to work), so instead we paint the background we want behind the
transparent webview.
Review URL: http://codereview.chromium.org/88076
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14378 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview.h')
-rw-r--r-- | webkit/glue/webview.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/glue/webview.h b/webkit/glue/webview.h index 600338f..2a9faec 100644 --- a/webkit/glue/webview.h +++ b/webkit/glue/webview.h @@ -226,6 +226,11 @@ class WebView : public WebWidget { // Returns development tools agent instance belonging to this view. virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0; + // Makes the webview transparent. Useful if you want to have some custom + // background behind it. + virtual void SetIsTransparent(bool is_transparent) = 0; + virtual bool GetIsTransparent() const = 0; + private: DISALLOW_COPY_AND_ASSIGN(WebView); }; |