OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/tab_contents/tab_contents_drag_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
| 9 #include <string> |
| 10 |
9 #include "base/file_path.h" | 11 #include "base/file_path.h" |
10 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
11 #include "base/task.h" | 13 #include "base/task.h" |
12 #include "base/thread.h" | 14 #include "base/thread.h" |
13 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
14 #include "base/win_util.h" | 16 #include "base/win_util.h" |
15 #include "chrome/browser/bookmarks/bookmark_drag_data.h" | 17 #include "chrome/browser/bookmarks/bookmark_drag_data.h" |
16 #include "chrome/browser/chrome_thread.h" | 18 #include "chrome/browser/chrome_thread.h" |
17 #include "chrome/browser/download/drag_download_file.h" | 19 #include "chrome/browser/download/drag_download_file.h" |
18 #include "chrome/browser/download/drag_download_util.h" | 20 #include "chrome/browser/download/drag_download_util.h" |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 | 356 |
355 void TabContentsDragWin::OnDataObjectDisposed() { | 357 void TabContentsDragWin::OnDataObjectDisposed() { |
356 DCHECK(drag_drop_thread_id_ == PlatformThread::CurrentId()); | 358 DCHECK(drag_drop_thread_id_ == PlatformThread::CurrentId()); |
357 | 359 |
358 // The drag-and-drop thread is only closed after OLE is done with | 360 // The drag-and-drop thread is only closed after OLE is done with |
359 // DataObjectImpl. | 361 // DataObjectImpl. |
360 ChromeThread::PostTask( | 362 ChromeThread::PostTask( |
361 ChromeThread::UI, FROM_HERE, | 363 ChromeThread::UI, FROM_HERE, |
362 NewRunnableMethod(this, &TabContentsDragWin::CloseThread)); | 364 NewRunnableMethod(this, &TabContentsDragWin::CloseThread)); |
363 } | 365 } |
OLD | NEW |