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

Unified Diff: chrome/browser/tab_contents/web_drag_source_win.cc

Issue 9015022: Replace most of Browser::GetSelectedTabContents calls into Browser::GetSelectedWebContents. I've ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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/web_drag_source_win.cc
===================================================================
--- chrome/browser/tab_contents/web_drag_source_win.cc (revision 116109)
+++ chrome/browser/tab_contents/web_drag_source_win.cc (working copy)
@@ -38,8 +38,8 @@
source_wnd_(source_wnd),
render_view_host_(tab_contents->GetRenderViewHost()),
effect_(DROPEFFECT_NONE) {
- registrar_.Add(this, content::NOTIFICATION_TAB_CONTENTS_SWAPPED,
- content::Source<TabContents>(tab_contents));
+ registrar_.Add(this, content::NOTIFICATION_WEB_CONTENTS_SWAPPED,
+ content::Source<WebContents>(tab_contents));
registrar_.Add(this, content::NOTIFICATION_WEB_CONTENTS_DISCONNECTED,
content::Source<WebContents>(tab_contents));
}
@@ -112,7 +112,7 @@
void WebDragSource::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
- if (content::NOTIFICATION_TAB_CONTENTS_SWAPPED == type) {
+ if (content::NOTIFICATION_WEB_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.
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu_browsertest.cc ('k') | chrome/browser/tabs/tab_finder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698