🔧 BrowserView.getAllViews()

This commit is contained in:
Felix Rieseberg 2017-11-22 16:58:32 -08:00
parent fded32dc4f
commit 3cb062b3d6

View file

@ -154,6 +154,8 @@ void Initialize(v8::Local<v8::Object> exports,
isolate, BrowserView::GetConstructor(isolate)->GetFunction());
browser_view.SetMethod("fromId",
&mate::TrackableObject<BrowserView>::FromWeakMapID);
browser_view.SetMethod("getAllViews",
&mate::TrackableObject<BrowserView>::GetAll);
mate::Dictionary dict(isolate, exports);
dict.Set("BrowserView", browser_view);
}