Add IsEmpty helper and remove GetInstance public usage
This commit is contained in:
parent
da5d7d72b0
commit
e7b679ead6
4 changed files with 14 additions and 13 deletions
|
@ -31,6 +31,11 @@ WindowList::WindowVector WindowList::GetWindows() {
|
|||
return GetInstance()->windows_;
|
||||
}
|
||||
|
||||
// static
|
||||
bool WindowList::IsEmpty() {
|
||||
return GetInstance()->windows_.empty();
|
||||
}
|
||||
|
||||
// static
|
||||
void WindowList::AddWindow(NativeWindow* window) {
|
||||
DCHECK(window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue