OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "ui/aura/root_window.h" | 12 #include "ui/aura/window_event_dispatcher.h" |
13 #include "ui/base/dragdrop/drag_drop_types.h" | 13 #include "ui/base/dragdrop/drag_drop_types.h" |
14 #include "ui/base/test/ui_controls.h" | 14 #include "ui/base/test/ui_controls.h" |
15 #include "ui/views/view.h" | 15 #include "ui/views/view.h" |
16 #include "ui/views/widget/widget.h" | 16 #include "ui/views/widget/widget.h" |
17 | 17 |
18 namespace ash { | 18 namespace ash { |
19 namespace internal { | 19 namespace internal { |
20 namespace { | 20 namespace { |
21 | 21 |
22 class DraggableView : public views::View { | 22 class DraggableView : public views::View { |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 base::MessageLoop::current()->Run(); | 156 base::MessageLoop::current()->Run(); |
157 | 157 |
158 EXPECT_TRUE(target_view->dropped()); | 158 EXPECT_TRUE(target_view->dropped()); |
159 | 159 |
160 source->Close(); | 160 source->Close(); |
161 target->Close(); | 161 target->Close(); |
162 } | 162 } |
163 | 163 |
164 } // namespace internal | 164 } // namespace internal |
165 } // namespace ash | 165 } // namespace ash |
OLD | NEW |