| OLD | NEW |
| 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/ui/views/tab_contents/tab_contents_drag_win.h" | 5 #include "chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "chrome/common/url_constants.h" | 23 #include "chrome/common/url_constants.h" |
| 24 #include "content/browser/download/drag_download_file.h" | 24 #include "content/browser/download/drag_download_file.h" |
| 25 #include "content/browser/download/drag_download_util.h" | 25 #include "content/browser/download/drag_download_util.h" |
| 26 #include "content/browser/tab_contents/tab_contents.h" | 26 #include "content/browser/tab_contents/tab_contents.h" |
| 27 #include "content/public/browser/browser_thread.h" | 27 #include "content/public/browser/browser_thread.h" |
| 28 #include "content/public/browser/content_browser_client.h" | 28 #include "content/public/browser/content_browser_client.h" |
| 29 #include "net/base/net_util.h" | 29 #include "net/base/net_util.h" |
| 30 #include "views/drag_utils.h" | 30 #include "views/drag_utils.h" |
| 31 #include "webkit/glue/webdropdata.h" | 31 #include "webkit/glue/webdropdata.h" |
| 32 | 32 |
| 33 using content::BrowserThread; |
| 33 using WebKit::WebDragOperationsMask; | 34 using WebKit::WebDragOperationsMask; |
| 34 using WebKit::WebDragOperationCopy; | 35 using WebKit::WebDragOperationCopy; |
| 35 using WebKit::WebDragOperationLink; | 36 using WebKit::WebDragOperationLink; |
| 36 using WebKit::WebDragOperationMove; | 37 using WebKit::WebDragOperationMove; |
| 37 | 38 |
| 38 namespace { | 39 namespace { |
| 39 | 40 |
| 40 HHOOK msg_hook = NULL; | 41 HHOOK msg_hook = NULL; |
| 41 DWORD drag_out_thread_id = 0; | 42 DWORD drag_out_thread_id = 0; |
| 42 bool mouse_up_received = false; | 43 bool mouse_up_received = false; |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 void TabContentsDragWin::OnDataObjectDisposed() { | 366 void TabContentsDragWin::OnDataObjectDisposed() { |
| 366 DCHECK(drag_drop_thread_id_ == base::PlatformThread::CurrentId()); | 367 DCHECK(drag_drop_thread_id_ == base::PlatformThread::CurrentId()); |
| 367 | 368 |
| 368 // The drag-and-drop thread is only closed after OLE is done with | 369 // The drag-and-drop thread is only closed after OLE is done with |
| 369 // DataObjectImpl. | 370 // DataObjectImpl. |
| 370 BrowserThread::PostTask( | 371 BrowserThread::PostTask( |
| 371 BrowserThread::UI, | 372 BrowserThread::UI, |
| 372 FROM_HERE, | 373 FROM_HERE, |
| 373 base::Bind(&TabContentsDragWin::CloseThread, this)); | 374 base::Bind(&TabContentsDragWin::CloseThread, this)); |
| 374 } | 375 } |
| OLD | NEW |