Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Unified Diff: chrome/browser/chromeos/notifications/notification_panel.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/notifications/notification_panel.cc
===================================================================
--- chrome/browser/chromeos/notifications/notification_panel.cc (revision 91971)
+++ chrome/browser/chromeos/notifications/notification_panel.cc (working copy)
@@ -10,6 +10,7 @@
#include "chrome/browser/chromeos/notifications/balloon_collection_impl.h"
#include "chrome/browser/chromeos/notifications/balloon_view.h"
+#include "chrome/common/chrome_notification_types.h"
#include "content/common/notification_details.h"
#include "content/common/notification_source.h"
#include "grit/generated_resources.h"
@@ -466,7 +467,7 @@
panel_controller_->Init(false /* don't focus when opened */,
gfx::Rect(0, 0, kBalloonMinWidth, 1), 0,
WM_IPC_PANEL_USER_RESIZE_VERTICALLY);
- registrar_.Add(this, NotificationType::PANEL_STATE_CHANGED,
+ registrar_.Add(this, chrome::NOTIFICATION_PANEL_STATE_CHANGED,
Source<PanelController>(panel_controller_.get()));
}
panel_widget_->Show();
@@ -616,10 +617,10 @@
////////////////////////////////////////////////////////////////////////////////
// NotificationObserver overrides.
-void NotificationPanel::Observe(NotificationType type,
+void NotificationPanel::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- DCHECK(type == NotificationType::PANEL_STATE_CHANGED);
+ DCHECK(type == chrome::NOTIFICATION_PANEL_STATE_CHANGED);
PanelController::State* state =
reinterpret_cast<PanelController::State*>(details.map_key());
switch (*state) {
@@ -687,7 +688,7 @@
void NotificationPanel::UnregisterNotification() {
if (panel_controller_.get())
- registrar_.Remove(this, NotificationType::PANEL_STATE_CHANGED,
+ registrar_.Remove(this, chrome::NOTIFICATION_PANEL_STATE_CHANGED,
Source<PanelController>(panel_controller_.get()));
}
« no previous file with comments | « chrome/browser/chromeos/notifications/notification_panel.h ('k') | chrome/browser/chromeos/offline/offline_load_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698