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

Unified Diff: chrome/browser/tab_contents/web_drag_source_win.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
« no previous file with comments | « chrome/browser/tab_contents/web_drag_source_win.h ('k') | chrome/browser/tabs/pinned_tab_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/web_drag_source_win.cc
===================================================================
--- chrome/browser/tab_contents/web_drag_source_win.cc (revision 91968)
+++ chrome/browser/tab_contents/web_drag_source_win.cc (working copy)
@@ -9,8 +9,8 @@
#include "content/browser/browser_thread.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/tab_contents/tab_contents.h"
+#include "content/common/content_notification_types.h"
#include "content/common/notification_source.h"
-#include "content/common/notification_type.h"
using WebKit::WebDragOperationNone;
@@ -36,9 +36,9 @@
source_wnd_(source_wnd),
render_view_host_(tab_contents->render_view_host()),
effect_(DROPEFFECT_NONE) {
- registrar_.Add(this, NotificationType::TAB_CONTENTS_SWAPPED,
+ registrar_.Add(this, content::NOTIFICATION_TAB_CONTENTS_SWAPPED,
Source<TabContents>(tab_contents));
- registrar_.Add(this, NotificationType::TAB_CONTENTS_DISCONNECTED,
+ registrar_.Add(this, content::NOTIFICATION_TAB_CONTENTS_DISCONNECTED,
Source<TabContents>(tab_contents));
}
@@ -107,14 +107,14 @@
screen.x(), screen.y());
}
-void WebDragSource::Observe(NotificationType type,
+void WebDragSource::Observe(int type,
const NotificationSource& source, const NotificationDetails& details) {
- if (NotificationType::TAB_CONTENTS_SWAPPED == type) {
+ if (content::NOTIFICATION_TAB_CONTENTS_SWAPPED == type) {
// When the tab contents get swapped, our render view host goes away.
// That's OK, we can continue the drag, we just can't send messages back to
// our drag source.
render_view_host_ = NULL;
- } else if (NotificationType::TAB_CONTENTS_DISCONNECTED == type) {
+ } else if (content::NOTIFICATION_TAB_CONTENTS_DISCONNECTED == type) {
// This could be possible when we close the tab and the source is still
// being used in DoDragDrop at the time that the virtual file is being
// downloaded.
« no previous file with comments | « chrome/browser/tab_contents/web_drag_source_win.h ('k') | chrome/browser/tabs/pinned_tab_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698