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 #include "ui/views/widget/drop_helper.h" | 5 #include "ui/views/widget/drop_helper.h" |
6 | 6 |
| 7 #include "build/build_config.h" |
7 #include "ui/base/dragdrop/drag_drop_types.h" | 8 #include "ui/base/dragdrop/drag_drop_types.h" |
8 #include "ui/views/view.h" | 9 #include "ui/views/view.h" |
9 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
10 | 11 |
11 namespace views { | 12 namespace views { |
12 | 13 |
13 DropHelper::DropHelper(View* root_view) | 14 DropHelper::DropHelper(View* root_view) |
14 : root_view_(root_view), | 15 : root_view_(root_view), |
15 target_view_(NULL), | 16 target_view_(NULL), |
16 deepest_view_(NULL) { | 17 deepest_view_(NULL) { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 drag_operation); | 148 drag_operation); |
148 return target_view_->OnDragUpdated(enter_event); | 149 return target_view_->OnDragUpdated(enter_event); |
149 } | 150 } |
150 | 151 |
151 void DropHelper::NotifyDragExit() { | 152 void DropHelper::NotifyDragExit() { |
152 if (target_view_) | 153 if (target_view_) |
153 target_view_->OnDragExited(); | 154 target_view_->OnDragExited(); |
154 } | 155 } |
155 | 156 |
156 } // namespace views | 157 } // namespace views |
OLD | NEW |