OLD | NEW |
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 "content/browser/web_contents/web_contents_drag_win.h" | 5 #include "content/browser/web_contents/web_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 20 matching lines...) Expand all Loading... |
31 #include "third_party/skia/include/core/SkBitmap.h" | 31 #include "third_party/skia/include/core/SkBitmap.h" |
32 #include "ui/base/clipboard/clipboard.h" | 32 #include "ui/base/clipboard/clipboard.h" |
33 #include "ui/base/clipboard/custom_data_helper.h" | 33 #include "ui/base/clipboard/custom_data_helper.h" |
34 #include "ui/base/dragdrop/drag_utils.h" | 34 #include "ui/base/dragdrop/drag_utils.h" |
35 #include "ui/base/layout.h" | 35 #include "ui/base/layout.h" |
36 #include "ui/base/win/scoped_ole_initializer.h" | 36 #include "ui/base/win/scoped_ole_initializer.h" |
37 #include "ui/gfx/image/image_skia.h" | 37 #include "ui/gfx/image/image_skia.h" |
38 #include "ui/gfx/screen.h" | 38 #include "ui/gfx/screen.h" |
39 #include "ui/gfx/size.h" | 39 #include "ui/gfx/size.h" |
40 | 40 |
41 using WebKit::WebDragOperationsMask; | 41 using blink::WebDragOperationsMask; |
42 using WebKit::WebDragOperationCopy; | 42 using blink::WebDragOperationCopy; |
43 using WebKit::WebDragOperationLink; | 43 using blink::WebDragOperationLink; |
44 using WebKit::WebDragOperationMove; | 44 using blink::WebDragOperationMove; |
45 | 45 |
46 namespace content { | 46 namespace content { |
47 namespace { | 47 namespace { |
48 | 48 |
49 bool run_do_drag_drop = true; | 49 bool run_do_drag_drop = true; |
50 | 50 |
51 HHOOK msg_hook = NULL; | 51 HHOOK msg_hook = NULL; |
52 DWORD drag_out_thread_id = 0; | 52 DWORD drag_out_thread_id = 0; |
53 bool mouse_up_received = false; | 53 bool mouse_up_received = false; |
54 | 54 |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 FROM_HERE, | 434 FROM_HERE, |
435 base::Bind(&WebContentsDragWin::CloseThread, this)); | 435 base::Bind(&WebContentsDragWin::CloseThread, this)); |
436 } | 436 } |
437 | 437 |
438 // static | 438 // static |
439 void WebContentsDragWin::DisableDragDropForTesting() { | 439 void WebContentsDragWin::DisableDragDropForTesting() { |
440 run_do_drag_drop = false; | 440 run_do_drag_drop = false; |
441 } | 441 } |
442 | 442 |
443 } // namespace content | 443 } // namespace content |
OLD | NEW |