Fix initializing webview

This commit is contained in:
Cheng Zhao 2014-10-24 16:09:18 +08:00
parent 39e75574f4
commit 993f66bd02
2 changed files with 14 additions and 1 deletions

View file

@ -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_; }