#10039 add BrowserView.fromId
This commit is contained in:
parent
a43553aa25
commit
ae7c1ae741
3 changed files with 20 additions and 1 deletions
|
@ -152,7 +152,8 @@ void Initialize(v8::Local<v8::Object> exports,
|
|||
|
||||
mate::Dictionary browser_view(
|
||||
isolate, BrowserView::GetConstructor(isolate)->GetFunction());
|
||||
|
||||
browser_view.SetMethod("fromId",
|
||||
&mate::TrackableObject<BrowserView>::FromWeakMapID);
|
||||
mate::Dictionary dict(isolate, exports);
|
||||
dict.Set("BrowserView", browser_view);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue