| OLD | NEW |
| 1 // Copyright (c) 2010 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/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 |
| 11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "base/task.h" | 13 #include "base/task.h" |
| 14 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
| 15 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
| 16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
| 17 #include "chrome/browser/bookmarks/bookmark_node_data.h" | 17 #include "chrome/browser/bookmarks/bookmark_node_data.h" |
| 18 #include "chrome/browser/browser_thread.h" | 18 #include "chrome/browser/browser_thread.h" |
| 19 #include "chrome/browser/download/download_util.h" | 19 #include "chrome/browser/download/download_util.h" |
| 20 #include "chrome/browser/download/drag_download_file.h" | 20 #include "chrome/browser/download/drag_download_file.h" |
| 21 #include "chrome/browser/download/drag_download_util.h" | 21 #include "chrome/browser/download/drag_download_util.h" |
| 22 #include "chrome/browser/tab_contents/tab_contents.h" | 22 #include "chrome/browser/tab_contents/tab_contents.h" |
| 23 #include "chrome/browser/tab_contents/web_drag_source_win.h" | 23 #include "chrome/browser/tab_contents/web_drag_source_win.h" |
| 24 #include "chrome/browser/tab_contents/web_drag_utils_win.h" | 24 #include "chrome/browser/tab_contents/web_drag_utils_win.h" |
| 25 #include "chrome/browser/tab_contents/web_drop_target_win.h" | 25 #include "chrome/browser/tab_contents/web_drop_target_win.h" |
| 26 #include "chrome/browser/views/tab_contents/tab_contents_view_win.h" | 26 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_win.h" |
| 27 #include "chrome/common/url_constants.h" | 27 #include "chrome/common/url_constants.h" |
| 28 #include "net/base/net_util.h" | 28 #include "net/base/net_util.h" |
| 29 #include "views/drag_utils.h" | 29 #include "views/drag_utils.h" |
| 30 #include "webkit/glue/webdropdata.h" | 30 #include "webkit/glue/webdropdata.h" |
| 31 | 31 |
| 32 using WebKit::WebDragOperationsMask; | 32 using WebKit::WebDragOperationsMask; |
| 33 using WebKit::WebDragOperationCopy; | 33 using WebKit::WebDragOperationCopy; |
| 34 using WebKit::WebDragOperationLink; | 34 using WebKit::WebDragOperationLink; |
| 35 using WebKit::WebDragOperationMove; | 35 using WebKit::WebDragOperationMove; |
| 36 | 36 |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 358 |
| 359 void TabContentsDragWin::OnDataObjectDisposed() { | 359 void TabContentsDragWin::OnDataObjectDisposed() { |
| 360 DCHECK(drag_drop_thread_id_ == base::PlatformThread::CurrentId()); | 360 DCHECK(drag_drop_thread_id_ == base::PlatformThread::CurrentId()); |
| 361 | 361 |
| 362 // The drag-and-drop thread is only closed after OLE is done with | 362 // The drag-and-drop thread is only closed after OLE is done with |
| 363 // DataObjectImpl. | 363 // DataObjectImpl. |
| 364 BrowserThread::PostTask( | 364 BrowserThread::PostTask( |
| 365 BrowserThread::UI, FROM_HERE, | 365 BrowserThread::UI, FROM_HERE, |
| 366 NewRunnableMethod(this, &TabContentsDragWin::CloseThread)); | 366 NewRunnableMethod(this, &TabContentsDragWin::CloseThread)); |
| 367 } | 367 } |
| OLD | NEW |