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

Unified Diff: chrome/browser/ui/views/frame/browser_view.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/ui/views/frame/browser_view.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_view.cc (revision 91968)
+++ chrome/browser/ui/views/frame/browser_view.cc (working copy)
@@ -69,6 +69,7 @@
#include "chrome/browser/ui/webui/bug_report_ui.h"
#include "chrome/browser/ui/webui/task_manager_dialog.h"
#include "chrome/browser/ui/window_sizer.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension_resource.h"
#include "chrome/common/native_window_notification_source.h"
@@ -337,7 +338,7 @@
browser_->tabstrip_model()->AddObserver(this);
registrar_.Add(this,
- NotificationType::SIDEBAR_CHANGED,
+ chrome::NOTIFICATION_SIDEBAR_CHANGED,
Source<SidebarManager>(SidebarManager::GetInstance()));
}
@@ -1394,11 +1395,11 @@
///////////////////////////////////////////////////////////////////////////////
// BrowserView, NotificationObserver implementation:
-void BrowserView::Observe(NotificationType type,
+void BrowserView::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- switch (type.value) {
- case NotificationType::SIDEBAR_CHANGED:
+ switch (type) {
+ case chrome::NOTIFICATION_SIDEBAR_CHANGED:
if (Details<SidebarContainer>(details)->tab_contents() ==
browser_->GetSelectedTabContents()) {
UpdateSidebar();
@@ -1729,7 +1730,7 @@
// Empty TabStripModel, it's now safe to allow the Window to be closed.
NotificationService::current()->Notify(
- NotificationType::WINDOW_CLOSED,
+ chrome::NOTIFICATION_WINDOW_CLOSED,
Source<gfx::NativeWindow>(frame_->GetNativeWindow()),
NotificationService::NoDetails());
return true;
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/browser/ui/views/frame/glass_browser_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698