diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-15 17:41:49 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-15 17:41:49 +0000 |
commit | 013c1ae64c02d4b08fed1133a8cb630ab4541838 (patch) | |
tree | 06db30e7ac548e599c2390e2116cf1cf4ae934e8 /chrome | |
parent | 4825062601489323b02c6cbb9c57ecc8c953ec53 (diff) | |
download | chromium_src-013c1ae64c02d4b08fed1133a8cb630ab4541838.zip chromium_src-013c1ae64c02d4b08fed1133a8cb630ab4541838.tar.gz chromium_src-013c1ae64c02d4b08fed1133a8cb630ab4541838.tar.bz2 |
Adds notification for window creation.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/73086
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13758 0039d316-1c4b-4281-b951-d872f2087c98
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() { |