Implement allowtransparency attribute

This commit is contained in:
Cheng Zhao 2014-10-24 16:48:21 +08:00
parent ce793ec86d
commit 6336edbe92
6 changed files with 49 additions and 14 deletions

View file

@ -61,6 +61,9 @@ class WebContents : public mate::EventEmitter,
const gfx::Size& min_size,
const gfx::Size& max_size);
// Sets the transparency of the guest.
void SetAllowTransparency(bool allow);
// Returns whether this is a guest view.
bool is_guest() const { return guest_instance_id_ != -1; }
@ -129,6 +132,9 @@ class WebContents : public mate::EventEmitter,
DestructionCallback destruction_callback_;
// Stores whether the contents of the guest can be transparent.
bool guest_opaque_;
// The extra parameters associated with this guest view passed
// in from JavaScript. This will typically be the view instance ID,
// the API to use, and view-specific parameters. These parameters