Add GetWindows helper that returns a vector

This commit is contained in:
Kevin Sawicki 2017-04-06 14:43:37 -07:00
parent 0883a9f966
commit da5d7d72b0
5 changed files with 11 additions and 21 deletions

View file

@ -26,6 +26,11 @@ WindowList* WindowList::GetInstance() {
return instance_;
}
// static
WindowList::WindowVector WindowList::GetWindows() {
return GetInstance()->windows_;
}
// static
void WindowList::AddWindow(NativeWindow* window) {
DCHECK(window);