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

Side by Side Diff: chrome/browser/ui/views/tab_contents/tab_contents_drag_win.cc

Issue 9582041: Move most of ui/views/drag_utils to ui/base/dragdrop so it can be used outside of views. I tried to… (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
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_win.cc ('k') | ui/base/dragdrop/drag_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/pickle.h" 14 #include "base/pickle.h"
15 #include "base/threading/platform_thread.h" 15 #include "base/threading/platform_thread.h"
16 #include "base/threading/thread.h" 16 #include "base/threading/thread.h"
17 #include "base/utf_string_conversions.h" 17 #include "base/utf_string_conversions.h"
18 #include "content/browser/download/drag_download_file.h" 18 #include "content/browser/download/drag_download_file.h"
19 #include "content/browser/download/drag_download_util.h" 19 #include "content/browser/download/drag_download_util.h"
20 #include "content/browser/tab_contents/web_drag_dest_delegate.h" 20 #include "content/browser/tab_contents/web_drag_dest_delegate.h"
21 #include "content/browser/tab_contents/web_drag_dest_win.h" 21 #include "content/browser/tab_contents/web_drag_dest_win.h"
22 #include "content/browser/tab_contents/web_drag_source_win.h" 22 #include "content/browser/tab_contents/web_drag_source_win.h"
23 #include "content/browser/tab_contents/web_drag_utils_win.h" 23 #include "content/browser/tab_contents/web_drag_utils_win.h"
24 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
25 #include "content/public/browser/content_browser_client.h" 25 #include "content/public/browser/content_browser_client.h"
26 #include "content/public/browser/web_contents.h" 26 #include "content/public/browser/web_contents.h"
27 #include "net/base/net_util.h" 27 #include "net/base/net_util.h"
28 #include "ui/base/clipboard/clipboard_util_win.h" 28 #include "ui/base/clipboard/clipboard_util_win.h"
29 #include "ui/base/clipboard/custom_data_helper.h" 29 #include "ui/base/clipboard/custom_data_helper.h"
30 #include "ui/base/dragdrop/drag_utils.h"
30 #include "ui/gfx/size.h" 31 #include "ui/gfx/size.h"
31 #include "ui/views/drag_utils.h"
32 #include "webkit/glue/webdropdata.h" 32 #include "webkit/glue/webdropdata.h"
33 33
34 using content::BrowserThread; 34 using content::BrowserThread;
35 using WebKit::WebDragOperationsMask; 35 using WebKit::WebDragOperationsMask;
36 using WebKit::WebDragOperationCopy; 36 using WebKit::WebDragOperationCopy;
37 using WebKit::WebDragOperationLink; 37 using WebKit::WebDragOperationLink;
38 using WebKit::WebDragOperationMove; 38 using WebKit::WebDragOperationMove;
39 39
40 namespace { 40 namespace {
41 41
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 void TabContentsDragWin::OnDataObjectDisposed() { 362 void TabContentsDragWin::OnDataObjectDisposed() {
363 DCHECK(drag_drop_thread_id_ == base::PlatformThread::CurrentId()); 363 DCHECK(drag_drop_thread_id_ == base::PlatformThread::CurrentId());
364 364
365 // The drag-and-drop thread is only closed after OLE is done with 365 // The drag-and-drop thread is only closed after OLE is done with
366 // DataObjectImpl. 366 // DataObjectImpl.
367 BrowserThread::PostTask( 367 BrowserThread::PostTask(
368 BrowserThread::UI, 368 BrowserThread::UI,
369 FROM_HERE, 369 FROM_HERE,
370 base::Bind(&TabContentsDragWin::CloseThread, this)); 370 base::Bind(&TabContentsDragWin::CloseThread, this));
371 } 371 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_win.cc ('k') | ui/base/dragdrop/drag_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698