summaryrefslogtreecommitdiffstats
path: root/chrome/views/window.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-01 18:16:56 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-01 18:16:56 +0000
commitbfd04a62ce610d7bb61dbb78811dccbed23589b7 (patch)
tree70bb228c0f00ba1c12c584efd569daccf96b4026 /chrome/views/window.cc
parenta814d863440f0a154a7299f2d8b440f405c7700e (diff)
downloadchromium_src-bfd04a62ce610d7bb61dbb78811dccbed23589b7.zip
chromium_src-bfd04a62ce610d7bb61dbb78811dccbed23589b7.tar.gz
chromium_src-bfd04a62ce610d7bb61dbb78811dccbed23589b7.tar.bz2
Remove most header file dependencies on the notification type list. It is
really painful to add more types, since lots of headers include the notification service to derive from the notification observer. This splits that out, so much less of the project should end up including notification_types.h ---Paths modified but not in any changelist: Review URL: http://codereview.chromium.org/19744 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/window.cc')
-rw-r--r--chrome/views/window.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/views/window.cc b/chrome/views/window.cc
index 5101efa..11e07f2b 100644
--- a/chrome/views/window.cc
+++ b/chrome/views/window.cc
@@ -9,6 +9,7 @@
#include "chrome/common/gfx/chrome_font.h"
#include "chrome/common/gfx/icon_util.h"
#include "chrome/common/l10n_util.h"
+#include "chrome/common/notification_service.h"
#include "chrome/common/pref_service.h"
#include "chrome/common/resource_bundle.h"
#include "chrome/common/win_util.h"
@@ -231,7 +232,7 @@ void Window::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
// This window is closed when the last app window is closed.
- DCHECK(type == NOTIFY_ALL_APPWINDOWS_CLOSED);
+ DCHECK(type == NotificationType::ALL_APPWINDOWS_CLOSED);
// Only registered as an observer when we're not an app window.
// XXX DCHECK(!IsAppWindow());
Close();
@@ -294,7 +295,9 @@ void Window::Init(HWND parent, const gfx::Rect& bounds) {
if (!IsAppWindow()) {
notification_registrar_.Add(
- this, NOTIFY_ALL_APPWINDOWS_CLOSED, NotificationService::AllSources());
+ this,
+ NotificationType::ALL_APPWINDOWS_CLOSED,
+ NotificationService::AllSources());
}
}