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
|
@ -20,11 +20,8 @@ class WindowList {
|
|||
public:
|
||||
typedef std::vector<NativeWindow*> WindowVector;
|
||||
|
||||
bool empty() const { return windows_.empty(); }
|
||||
|
||||
static WindowList* GetInstance();
|
||||
|
||||
static WindowVector GetWindows();
|
||||
static bool IsEmpty();
|
||||
|
||||
// Adds or removes |window| from the list it is associated with.
|
||||
static void AddWindow(NativeWindow* window);
|
||||
|
@ -44,6 +41,8 @@ class WindowList {
|
|||
static void DestroyAllWindows();
|
||||
|
||||
private:
|
||||
static WindowList* GetInstance();
|
||||
|
||||
WindowList();
|
||||
~WindowList();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue