diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/common/notification_type.h | 4 | ||||
-rw-r--r-- | chrome/views/window/window_win.cc | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/chrome/common/notification_type.h b/chrome/common/notification_type.h index 009c90e..aba1962d 100644 --- a/chrome/common/notification_type.h +++ b/chrome/common/notification_type.h @@ -184,6 +184,10 @@ class NotificationType { // details are passed. ALL_APPWINDOWS_CLOSED, + // Indicates a new top window has been created. The source is the + // WindowWin. + WINDOW_CREATED, + // Indicates that a top window has been closed. The source is the HWND // that was closed, no details are expected. WINDOW_CLOSED, diff --git a/chrome/views/window/window_win.cc b/chrome/views/window/window_win.cc index 87fa43f..e046180c 100644 --- a/chrome/views/window/window_win.cc +++ b/chrome/views/window/window_win.cc @@ -401,6 +401,11 @@ void WindowWin::Init(HWND parent, const gfx::Rect& bounds) { } ResetWindowRegion(false); + + NotificationService::current()->Notify( + NotificationType::WINDOW_CREATED, + Source<WindowWin>(this), + NotificationService::NoDetails()); } void WindowWin::SizeWindowToDefault() { |