diff options
author | fsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-03 18:09:19 +0000 |
---|---|---|
committer | fsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-03 18:09:19 +0000 |
commit | 261746fea395fb1587311bad6c185a4cde8335ec (patch) | |
tree | 19b195aed42d23ed988175081e75e96810ca6fbc /content/renderer/browser_plugin/browser_plugin.h | |
parent | 03d9afc0b775748203170a27014a3ee3500aecc2 (diff) | |
download | chromium_src-261746fea395fb1587311bad6c185a4cde8335ec.zip chromium_src-261746fea395fb1587311bad6c185a4cde8335ec.tar.gz chromium_src-261746fea395fb1587311bad6c185a4cde8335ec.tar.bz2 |
<webview>: Expose transparency API
BUG=157628
Review URL: https://codereview.chromium.org/95693002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238428 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/browser_plugin/browser_plugin.h')
-rw-r--r-- | content/renderer/browser_plugin/browser_plugin.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/content/renderer/browser_plugin/browser_plugin.h b/content/renderer/browser_plugin/browser_plugin.h index f9c6fbb..afaca69 100644 --- a/content/renderer/browser_plugin/browser_plugin.h +++ b/content/renderer/browser_plugin/browser_plugin.h @@ -60,6 +60,11 @@ class CONTENT_EXPORT BrowserPlugin : std::string GetNameAttribute() const; // Parse the name attribute value. void ParseNameAttribute(); + // Get the allowtransparency attribute value. + bool GetAllowTransparencyAttribute() const; + // Parse the allowtransparency attribute and adjust transparency of + // BrowserPlugin accordingly. + void ParseAllowTransparencyAttribute(); // Get the src attribute value of the BrowserPlugin instance. std::string GetSrcAttribute() const; // Parse the src attribute value of the BrowserPlugin instance. @@ -135,10 +140,6 @@ class CONTENT_EXPORT BrowserPlugin : // sent, if needed. void DidCommitCompositorFrame(); - // Apply opacity settings on the composited layers in embedder and send a - // message to the guest renderer to enable or disable transparent background. - void SetContentsOpaque(bool opaque); - // Returns whether a message should be forwarded to BrowserPlugin. static bool ShouldForwardToBrowserPlugin(const IPC::Message& message); @@ -335,9 +336,6 @@ class CONTENT_EXPORT BrowserPlugin : // Tracks the visibility of the browser plugin regardless of the whole // embedder RenderView's visibility. bool visible_; - // Tracks the opacity of the compositing helper's layers and the guest - // renderer process. - bool opaque_; WebCursor cursor_; |