Simplify the GuestWindowManager

Instead of recording guest explicitly in a map, we just make use of
closure for bookkeeping.
This commit is contained in:
Cheng Zhao 2014-10-28 18:51:28 +08:00
parent c71aa0995a
commit 0c21c863d7
3 changed files with 27 additions and 42 deletions

View file

@ -59,6 +59,7 @@ class Window : public mate::EventEmitter,
// APIs for NativeWindow.
void Destroy();
void Close();
bool IsClosed();
void Focus();
bool IsFocused();
void Show();