OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ash/drag_drop/drag_drop_controller.h" | 5 #include "ash/drag_drop/drag_drop_controller.h" |
6 | 6 |
7 #include "ash/drag_drop/drag_image_view.h" | 7 #include "ash/drag_drop/drag_image_view.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "ui/aura/client/drag_drop_delegate.h" | 10 #include "ui/aura/client/drag_drop_delegate.h" |
11 #include "ui/aura/root_window.h" | 11 #include "ui/aura/root_window.h" |
12 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
13 #include "ui/base/dragdrop/drag_drop_types.h" | 13 #include "ui/base/dragdrop/drag_drop_types.h" |
14 #include "ui/base/dragdrop/os_exchange_data_provider_aura.h" | 14 #include "ui/base/dragdrop/os_exchange_data_provider_aura.h" |
15 #include "ui/gfx/point.h" | 15 #include "ui/gfx/point.h" |
16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
17 #include "ui/views/widget/native_widget_aura.h" | 17 #include "ui/views/widget/native_widget_aura.h" |
18 | 18 |
19 namespace aura_shell { | 19 namespace ash { |
20 namespace internal { | 20 namespace internal { |
21 | 21 |
22 using aura::RootWindow; | 22 using aura::RootWindow; |
23 | 23 |
24 namespace { | 24 namespace { |
25 const gfx::Point kDragDropWidgetOffset(0, 0); | 25 const gfx::Point kDragDropWidgetOffset(0, 0); |
26 } | 26 } |
27 | 27 |
28 //////////////////////////////////////////////////////////////////////////////// | 28 //////////////////////////////////////////////////////////////////////////////// |
29 // DragDropController, public: | 29 // DragDropController, public: |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 //////////////////////////////////////////////////////////////////////////////// | 166 //////////////////////////////////////////////////////////////////////////////// |
167 // DragDropController, private: | 167 // DragDropController, private: |
168 | 168 |
169 void DragDropController::Cleanup() { | 169 void DragDropController::Cleanup() { |
170 drag_image_.reset(); | 170 drag_image_.reset(); |
171 drag_data_ = NULL; | 171 drag_data_ = NULL; |
172 drag_drop_in_progress_ = false; | 172 drag_drop_in_progress_ = false; |
173 } | 173 } |
174 | 174 |
175 } // namespace internal | 175 } // namespace internal |
176 } // namespace aura_shell | 176 } // namespace ash |
OLD | NEW |