| 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 UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTIOP_DROP_TARGET_WIN_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTIOP_DROP_TARGET_WIN_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTIOP_DROP_TARGET_WIN_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTIOP_DROP_TARGET_WIN_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/aura/window_observer.h" | 9 #include "ui/aura/window_observer.h" |
| 10 #include "ui/base/dragdrop/drop_target_win.h" | 10 #include "ui/base/dragdrop/drop_target_win.h" |
| 11 | 11 |
| 12 namespace aura { | 12 namespace aura { |
| 13 namespace client { | 13 namespace client { |
| 14 class DragDropDelegate; | 14 class DragDropDelegate; |
| 15 } | 15 } |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace ui { | 18 namespace ui { |
| 19 class DropTargetEvent; | 19 class DropTargetEvent; |
| 20 class OSExchangeData; | 20 class OSExchangeData; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace views { | 23 namespace views { |
| 24 | 24 |
| 25 // DesktopDropTargetWin takes care of managing drag and drop for | 25 // DesktopDropTargetWin takes care of managing drag and drop for |
| 26 // DesktopWindowTreeHostWin. It converts Windows OLE drop messages into | 26 // DesktopRootWindowHostWin. It converts Windows OLE drop messages into |
| 27 // aura::client::DragDropDelegate calls. | 27 // aura::client::DragDropDelegate calls. |
| 28 class DesktopDropTargetWin : public ui::DropTargetWin, | 28 class DesktopDropTargetWin : public ui::DropTargetWin, |
| 29 public aura::WindowObserver { | 29 public aura::WindowObserver { |
| 30 public: | 30 public: |
| 31 DesktopDropTargetWin(aura::Window* root_window, HWND window); | 31 DesktopDropTargetWin(aura::Window* root_window, HWND window); |
| 32 virtual ~DesktopDropTargetWin(); | 32 virtual ~DesktopDropTargetWin(); |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 // ui::DropTargetWin implementation: | 35 // ui::DropTargetWin implementation: |
| 36 virtual DWORD OnDragEnter(IDataObject* data_object, | 36 virtual DWORD OnDragEnter(IDataObject* data_object, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // could be multiple aura windows, so we need to generate drag enter events | 71 // could be multiple aura windows, so we need to generate drag enter events |
| 72 // for them. | 72 // for them. |
| 73 aura::Window* target_window_; | 73 aura::Window* target_window_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(DesktopDropTargetWin); | 75 DISALLOW_COPY_AND_ASSIGN(DesktopDropTargetWin); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace views | 78 } // namespace views |
| 79 | 79 |
| 80 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTIOP_DROP_TARGET_WIN_H_ | 80 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTIOP_DROP_TARGET_WIN_H_ |
| OLD | NEW |