Fix initializing webview
This commit is contained in:
parent
39e75574f4
commit
993f66bd02
2 changed files with 14 additions and 1 deletions
|
@ -61,6 +61,9 @@ class WebContents : public mate::EventEmitter,
|
|||
const gfx::Size& min_size,
|
||||
const gfx::Size& max_size);
|
||||
|
||||
// Returns whether this is a guest view.
|
||||
bool is_guest() const { return guest_instance_id_ != -1; }
|
||||
|
||||
// Returns whether this guest has an associated embedder.
|
||||
bool attached() const { return !!embedder_web_contents_; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue