OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_DRAG_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_DRAG_WIN_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_DRAG_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_DRAG_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
11 #include "base/threading/platform_thread.h" | 11 #include "base/threading/platform_thread.h" |
12 #include "gfx/point.h" | |
13 #include "third_party/skia/include/core/SkBitmap.h" | 12 #include "third_party/skia/include/core/SkBitmap.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
15 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" | 14 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" |
| 15 #include "ui/gfx/point.h" |
16 | 16 |
17 class DragDropThread; | 17 class DragDropThread; |
18 class TabContentsViewWin; | 18 class TabContentsViewWin; |
19 class WebDragSource; | 19 class WebDragSource; |
20 struct WebDropData; | 20 struct WebDropData; |
21 | 21 |
22 // Windows-specific drag-and-drop handling in TabContentsView. | 22 // Windows-specific drag-and-drop handling in TabContentsView. |
23 // If we are dragging a virtual file out of the browser, we use a background | 23 // If we are dragging a virtual file out of the browser, we use a background |
24 // thread to do the drag-and-drop because we do not want to run nested | 24 // thread to do the drag-and-drop because we do not want to run nested |
25 // message loop in the UI thread. For all other cases, the drag-and-drop happens | 25 // message loop in the UI thread. For all other cases, the drag-and-drop happens |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 bool drag_ended_; | 92 bool drag_ended_; |
93 | 93 |
94 // Keep track of the old suspended state of the drop target. | 94 // Keep track of the old suspended state of the drop target. |
95 bool old_drop_target_suspended_state_; | 95 bool old_drop_target_suspended_state_; |
96 | 96 |
97 DISALLOW_COPY_AND_ASSIGN(TabContentsDragWin); | 97 DISALLOW_COPY_AND_ASSIGN(TabContentsDragWin); |
98 }; | 98 }; |
99 | 99 |
100 | 100 |
101 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_DRAG_WIN_H_ | 101 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_DRAG_WIN_H_ |
OLD | NEW |