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

Unified Diff: chrome/browser/tab_contents/tab_contents_view_mac.mm

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_mac.mm
===================================================================
--- chrome/browser/tab_contents/tab_contents_view_mac.mm (revision 91968)
+++ chrome/browser/tab_contents/tab_contents_view_mac.mm (working copy)
@@ -25,9 +25,9 @@
#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/tab_contents/tab_contents_delegate.h"
#import "content/common/chrome_application_mac.h"
+#include "content/common/content_notification_types.h"
#include "content/common/notification_details.h"
#include "content/common/notification_source.h"
-#include "content/common/notification_type.h"
#include "content/common/view_messages.h"
#include "skia/ext/skia_utils_mac.h"
#import "third_party/mozilla/NSPasteboard+Utils.h"
@@ -69,7 +69,7 @@
TabContentsViewMac::TabContentsViewMac(TabContents* tab_contents)
: TabContentsView(tab_contents),
preferred_width_(0) {
- registrar_.Add(this, NotificationType::TAB_CONTENTS_CONNECTED,
+ registrar_.Add(this, content::NOTIFICATION_TAB_CONTENTS_CONNECTED,
Source<TabContents>(tab_contents));
}
@@ -358,11 +358,11 @@
tab_contents()->Close(tab_contents()->render_view_host());
}
-void TabContentsViewMac::Observe(NotificationType type,
+void TabContentsViewMac::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: {
sad_tab_.reset();
break;
}
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.h ('k') | chrome/browser/tab_contents/thumbnail_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698