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

Side by Side Diff: content/browser/tab_contents/web_drag_source_win.cc

Issue 9562049: Move the core drag&drop code for Windows to content\browser to match Mac/GTK. I've had to add tempo… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/tab_contents/web_drag_source_win.h" 5 #include "content/browser/tab_contents/web_drag_source_win.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/tab_contents/web_drag_utils_win.h"
9 #include "content/browser/renderer_host/render_view_host.h" 8 #include "content/browser/renderer_host/render_view_host.h"
9 #include "content/browser/tab_contents/web_drag_utils_win.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 #include "content/public/browser/notification_source.h" 11 #include "content/public/browser/notification_source.h"
12 #include "content/public/browser/notification_types.h" 12 #include "content/public/browser/notification_types.h"
13 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
14 14
15 using WebKit::WebDragOperationNone; 15 using WebKit::WebDragOperationNone;
16 using content::BrowserThread; 16 using content::BrowserThread;
17 using content::WebContents; 17 using content::WebContents;
18 18
19 namespace { 19 namespace {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // That's OK, we can continue the drag, we just can't send messages back to 117 // That's OK, we can continue the drag, we just can't send messages back to
118 // our drag source. 118 // our drag source.
119 render_view_host_ = NULL; 119 render_view_host_ = NULL;
120 } else if (content::NOTIFICATION_WEB_CONTENTS_DISCONNECTED == type) { 120 } else if (content::NOTIFICATION_WEB_CONTENTS_DISCONNECTED == type) {
121 // This could be possible when we close the tab and the source is still 121 // This could be possible when we close the tab and the source is still
122 // being used in DoDragDrop at the time that the virtual file is being 122 // being used in DoDragDrop at the time that the virtual file is being
123 // downloaded. 123 // downloaded.
124 render_view_host_ = NULL; 124 render_view_host_ = NULL;
125 } 125 }
126 } 126 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/web_drag_source_win.h ('k') | content/browser/tab_contents/web_drag_utils_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698