| 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/views/widget/desktop_aura/desktop_drop_target_win.h" | 5 #include "ui/views/widget/desktop_aura/desktop_drop_target_win.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/win/win_util.h" | 9 #include "base/win/win_util.h" |
| 10 #include "ui/aura/client/drag_drop_client.h" |
| 10 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
| 11 #include "ui/aura/window_tree_host.h" | 12 #include "ui/aura/window_tree_host.h" |
| 12 #include "ui/base/dragdrop/drag_drop_types.h" | 13 #include "ui/base/dragdrop/drag_drop_types.h" |
| 13 #include "ui/base/dragdrop/drop_target_event.h" | 14 #include "ui/base/dragdrop/drop_target_event.h" |
| 14 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" | 15 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" |
| 15 #include "ui/events/event_constants.h" | 16 #include "ui/events/event_constants.h" |
| 16 #include "ui/wm/public/drag_drop_client.h" | |
| 17 #include "ui/wm/public/drag_drop_delegate.h" | 17 #include "ui/wm/public/drag_drop_delegate.h" |
| 18 | 18 |
| 19 using aura::client::DragDropClient; | 19 using aura::client::DragDropClient; |
| 20 using aura::client::DragDropDelegate; | 20 using aura::client::DragDropDelegate; |
| 21 using ui::OSExchangeData; | 21 using ui::OSExchangeData; |
| 22 using ui::OSExchangeDataProviderWin; | 22 using ui::OSExchangeDataProviderWin; |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 int ConvertKeyStateToAuraEventFlags(DWORD key_state) | 26 int ConvertKeyStateToAuraEventFlags(DWORD key_state) |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 return; | 168 return; |
| 169 DragDropDelegate* delegate = | 169 DragDropDelegate* delegate = |
| 170 aura::client::GetDragDropDelegate(target_window_); | 170 aura::client::GetDragDropDelegate(target_window_); |
| 171 if (delegate) | 171 if (delegate) |
| 172 delegate->OnDragExited(); | 172 delegate->OnDragExited(); |
| 173 target_window_->RemoveObserver(this); | 173 target_window_->RemoveObserver(this); |
| 174 target_window_ = NULL; | 174 target_window_ = NULL; |
| 175 } | 175 } |
| 176 | 176 |
| 177 } // namespace views | 177 } // namespace views |
| OLD | NEW |