Add WebContents.getOwnerBrowserWindow
This commit is contained in:
parent
83c514001e
commit
f2c7943d42
5 changed files with 30 additions and 1 deletions
|
@ -43,6 +43,10 @@ class Window : public mate::TrackableObject<Window>,
|
|||
static void BuildPrototype(v8::Isolate* isolate,
|
||||
v8::Local<v8::ObjectTemplate> prototype);
|
||||
|
||||
// Returns the BrowserWindow object from |native_window|.
|
||||
static v8::Local<v8::Value> From(v8::Isolate* isolate,
|
||||
NativeWindow* native_window);
|
||||
|
||||
NativeWindow* window() const { return window_.get(); }
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue