| 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 "ui/aura_shell/drag_drop_controller.h" | 5 #include "ui/aura_shell/drag_drop_controller.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "ui/aura/client/aura_constants.h" | 8 #include "ui/aura/client/aura_constants.h" |
| 9 #include "ui/aura/client/window_drag_drop_delegate.h" | 9 #include "ui/aura/client/window_drag_drop_delegate.h" |
| 10 #include "ui/aura/desktop.h" | 10 #include "ui/aura/desktop.h" |
| 11 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
| 12 #include "ui/aura_shell/drag_image_view.h" | 12 #include "ui/aura_shell/drag_image_view.h" |
| 13 #include "ui/aura_shell/shell.h" | 13 #include "ui/aura_shell/shell.h" |
| 14 #include "ui/base/dragdrop/drag_drop_types.h" | 14 #include "ui/base/dragdrop/drag_drop_types.h" |
| 15 #include "ui/base/dragdrop/os_exchange_data_provider_aura.h" | 15 #include "ui/base/dragdrop/os_exchange_data_provider_aura.h" |
| 16 #include "ui/gfx/point.h" | 16 #include "ui/gfx/point.h" |
| 17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/rect.h" |
| 18 #include "ui/views/widget/native_widget_aura.h" | 18 #include "views/widget/native_widget_aura.h" |
| 19 | 19 |
| 20 namespace aura_shell { | 20 namespace aura_shell { |
| 21 namespace internal { | 21 namespace internal { |
| 22 | 22 |
| 23 using aura::Desktop; | 23 using aura::Desktop; |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 aura::WindowDragDropDelegate* GetDragDropDelegate(aura::Window* window) { | 26 aura::WindowDragDropDelegate* GetDragDropDelegate(aura::Window* window) { |
| 27 if (!window) | 27 if (!window) |
| 28 return NULL; | 28 return NULL; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 174 |
| 175 void DragDropController::Cleanup() { | 175 void DragDropController::Cleanup() { |
| 176 drag_image_.reset(); | 176 drag_image_.reset(); |
| 177 drag_data_ = NULL; | 177 drag_data_ = NULL; |
| 178 drag_operation_ = 0; | 178 drag_operation_ = 0; |
| 179 drag_drop_in_progress_ = false; | 179 drag_drop_in_progress_ = false; |
| 180 } | 180 } |
| 181 | 181 |
| 182 } // namespace internal | 182 } // namespace internal |
| 183 } // namespace aura_shell | 183 } // namespace aura_shell |
| OLD | NEW |