Browse Source

:wrench: BrowserView.getAllViews()

Felix Rieseberg 7 years ago
parent
commit
3cb062b3d6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      atom/browser/api/atom_api_browser_view.cc

+ 2 - 0
atom/browser/api/atom_api_browser_view.cc

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