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

Unified Diff: chrome/browser/tab_contents/tab_contents_view_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/tab_contents/tab_contents_view_gtk.cc
===================================================================
--- chrome/browser/tab_contents/tab_contents_view_gtk.cc (revision 91968)
+++ chrome/browser/tab_contents/tab_contents_view_gtk.cc (working copy)
@@ -29,8 +29,8 @@
#include "content/browser/tab_contents/interstitial_page.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/tab_contents/tab_contents_delegate.h"
+#include "content/common/content_notification_types.h"
#include "content/common/notification_source.h"
-#include "content/common/notification_type.h"
#include "ui/gfx/point.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/size.h"
@@ -99,7 +99,7 @@
gtk_container_add(GTK_CONTAINER(floating_.get()), expanded_);
gtk_widget_show(expanded_);
gtk_widget_show(floating_.get());
- registrar_.Add(this, NotificationType::TAB_CONTENTS_CONNECTED,
+ registrar_.Add(this, content::NOTIFICATION_TAB_CONTENTS_CONNECTED,
Source<TabContents>(tab_contents));
drag_source_.reset(new TabContentsDragSource(this));
}
@@ -282,11 +282,11 @@
}
}
-void TabContentsViewGtk::Observe(NotificationType type,
+void TabContentsViewGtk::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- switch (type.value) {
- case NotificationType::TAB_CONTENTS_CONNECTED: {
+ switch (type) {
+ case content::NOTIFICATION_TAB_CONTENTS_CONNECTED: {
// No need to remove the SadTabGtk's widget from the container since
// the new RenderWidgetHostViewGtk instance already removed all the
// vbox's children.
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.h ('k') | chrome/browser/tab_contents/tab_contents_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698