feat: browserWindow.getBrowserViews() to return sorted by z-index array (#38943)

This commit is contained in:
Mikhail Leliakin
2023-07-11 19:01:30 +10:00
committed by GitHub
parent 905e41bbdd
commit f959fb0c96
4 changed files with 36 additions and 13 deletions

View File

@@ -275,7 +275,7 @@ class BaseWindow : public gin_helper::TrackableObject<BaseWindow>,
#endif
v8::Global<v8::Value> content_view_;
std::map<int32_t, v8::Global<v8::Value>> browser_views_;
std::vector<v8::Global<v8::Value>> browser_views_;
v8::Global<v8::Value> menu_;
v8::Global<v8::Value> parent_window_;
KeyWeakMap<int> child_windows_;