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

Unified Diff: chrome/browser/chromeos/frame/layout_mode_button.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/frame/layout_mode_button.cc
===================================================================
--- chrome/browser/chromeos/frame/layout_mode_button.cc (revision 91971)
+++ chrome/browser/chromeos/frame/layout_mode_button.cc (working copy)
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/chromeos/wm_ipc.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"
@@ -42,17 +43,17 @@
return ImageButton::HitTest(point);
}
-void LayoutModeButton::Observe(NotificationType type,
+void LayoutModeButton::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- DCHECK(type == NotificationType::LAYOUT_MODE_CHANGED);
+ DCHECK(type == chrome::NOTIFICATION_LAYOUT_MODE_CHANGED);
UpdateForCurrentLayoutMode();
}
void LayoutModeButton::Init() {
WmIpc* wm_ipc = WmIpc::instance();
registrar_.Add(this,
- NotificationType::LAYOUT_MODE_CHANGED,
+ chrome::NOTIFICATION_LAYOUT_MODE_CHANGED,
Source<WmIpc>(wm_ipc));
UpdateForCurrentLayoutMode();
}
« no previous file with comments | « chrome/browser/chromeos/frame/layout_mode_button.h ('k') | chrome/browser/chromeos/frame/panel_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698