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

Unified Diff: chrome/browser/ui/gtk/tab_contents_container_gtk.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/gtk/tab_contents_container_gtk.cc
===================================================================
--- chrome/browser/ui/gtk/tab_contents_container_gtk.cc (revision 91968)
+++ chrome/browser/ui/gtk/tab_contents_container_gtk.cc (working copy)
@@ -64,7 +64,7 @@
void TabContentsContainerGtk::SetTab(TabContentsWrapper* tab) {
HideTab(tab_);
if (tab_) {
- registrar_.Remove(this, NotificationType::TAB_CONTENTS_DESTROYED,
+ registrar_.Remove(this, content::NOTIFICATION_TAB_CONTENTS_DESTROYED,
Source<TabContents>(tab_->tab_contents()));
}
@@ -77,7 +77,7 @@
} else if (tab_) {
// Otherwise we actually have to add it to the widget hierarchy.
PackTab(tab);
- registrar_.Add(this, NotificationType::TAB_CONTENTS_DESTROYED,
+ registrar_.Add(this, content::NOTIFICATION_TAB_CONTENTS_DESTROYED,
Source<TabContents>(tab_->tab_contents()));
}
}
@@ -95,7 +95,7 @@
preview_ = preview;
PackTab(preview);
- registrar_.Add(this, NotificationType::TAB_CONTENTS_DESTROYED,
+ registrar_.Add(this, content::NOTIFICATION_TAB_CONTENTS_DESTROYED,
Source<TabContents>(preview_->tab_contents()));
}
@@ -109,7 +109,7 @@
if (preview_widget)
gtk_container_remove(GTK_CONTAINER(expanded_), preview_widget);
- registrar_.Remove(this, NotificationType::TAB_CONTENTS_DESTROYED,
+ registrar_.Remove(this, content::NOTIFICATION_TAB_CONTENTS_DESTROYED,
Source<TabContents>(preview_->tab_contents()));
preview_ = NULL;
}
@@ -168,10 +168,10 @@
}
}
-void TabContentsContainerGtk::Observe(NotificationType type,
+void TabContentsContainerGtk::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- DCHECK(type == NotificationType::TAB_CONTENTS_DESTROYED);
+ DCHECK(type == content::NOTIFICATION_TAB_CONTENTS_DESTROYED);
TabContentsDestroyed(Source<TabContents>(source).ptr());
}
« no previous file with comments | « chrome/browser/ui/gtk/tab_contents_container_gtk.h ('k') | chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698