| 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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_DRAG_WIN_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_DRAG_WIN_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_DRAG_WIN_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_DRAG_WIN_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/threading/platform_thread.h" | 12 #include "base/threading/platform_thread.h" |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 15 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" | 15 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" |
| 16 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
| 17 #include "ui/gfx/point.h" | 17 #include "ui/gfx/point.h" |
| 18 | 18 |
| 19 class SkBitmap; | 19 class SkBitmap; |
| 20 class WebDragDest; | |
| 21 class WebDragSource; | |
| 22 struct WebDropData; | 20 struct WebDropData; |
| 23 | 21 |
| 24 namespace gfx { | 22 namespace gfx { |
| 25 class ImageSkia; | 23 class ImageSkia; |
| 26 } | 24 } |
| 27 | 25 |
| 28 namespace content { | 26 namespace content { |
| 29 class DragDropThread; | 27 class DragDropThread; |
| 30 class WebContents; | 28 class WebContents; |
| 29 class WebDragDest; |
| 30 class WebDragSource; |
| 31 | 31 |
| 32 // Windows-specific drag-and-drop handling in WebContentsView. | 32 // Windows-specific drag-and-drop handling in WebContentsView. |
| 33 // If we are dragging a virtual file out of the browser, we use a background | 33 // If we are dragging a virtual file out of the browser, we use a background |
| 34 // thread to do the drag-and-drop because we do not want to run nested | 34 // thread to do the drag-and-drop because we do not want to run nested |
| 35 // message loop in the UI thread. For all other cases, the drag-and-drop happens | 35 // message loop in the UI thread. For all other cases, the drag-and-drop happens |
| 36 // in the UI thread. | 36 // in the UI thread. |
| 37 class CONTENT_EXPORT WebContentsDragWin | 37 class CONTENT_EXPORT WebContentsDragWin |
| 38 : NON_EXPORTED_BASE(public ui::DataObjectImpl::Observer), | 38 : NON_EXPORTED_BASE(public ui::DataObjectImpl::Observer), |
| 39 public base::RefCountedThreadSafe<WebContentsDragWin> { | 39 public base::RefCountedThreadSafe<WebContentsDragWin> { |
| 40 public: | 40 public: |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 bool drag_ended_; | 110 bool drag_ended_; |
| 111 | 111 |
| 112 base::Callback<void()> drag_end_callback_; | 112 base::Callback<void()> drag_end_callback_; |
| 113 | 113 |
| 114 DISALLOW_COPY_AND_ASSIGN(WebContentsDragWin); | 114 DISALLOW_COPY_AND_ASSIGN(WebContentsDragWin); |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 } // namespace content | 117 } // namespace content |
| 118 | 118 |
| 119 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_DRAG_WIN_H_ | 119 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_DRAG_WIN_H_ |
| OLD | NEW |