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/location.h" | 7 #include "base/location.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "ui/aura/client/aura_constants.h" | 9 #include "ui/aura/client/aura_constants.h" |
10 #include "ui/aura/desktop.h" | 10 #include "ui/aura/desktop.h" |
11 #include "ui/aura/event.h" | 11 #include "ui/aura/event.h" |
12 #include "ui/aura_shell/desktop_event_filter.h" | 12 #include "ui/aura_shell/desktop_event_filter.h" |
13 #include "ui/aura_shell/test/aura_shell_test_base.h" | 13 #include "ui/aura_shell/test/aura_shell_test_base.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.h" | 15 #include "ui/base/dragdrop/os_exchange_data.h" |
16 #include "ui/views/events/event.h" | 16 #include "ui/views/events/event.h" |
| 17 #include "ui/views/widget/widget.h" |
17 #include "views/view.h" | 18 #include "views/view.h" |
18 #include "views/widget/widget.h" | |
19 | 19 |
20 namespace aura_shell { | 20 namespace aura_shell { |
21 namespace test { | 21 namespace test { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 // A simple view that makes sure RunShellDrag is invoked on mouse drag. | 25 // A simple view that makes sure RunShellDrag is invoked on mouse drag. |
26 class DragTestView : public views::View { | 26 class DragTestView : public views::View { |
27 public: | 27 public: |
28 DragTestView() : views::View() { | 28 DragTestView() : views::View() { |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 EXPECT_EQ(num_expected_updates, drag_view2->num_drag_updates_); | 362 EXPECT_EQ(num_expected_updates, drag_view2->num_drag_updates_); |
363 EXPECT_EQ(1, drag_view2->num_drops_); | 363 EXPECT_EQ(1, drag_view2->num_drops_); |
364 EXPECT_EQ(0, drag_view2->num_drag_exits_); | 364 EXPECT_EQ(0, drag_view2->num_drag_exits_); |
365 EXPECT_FALSE(drag_view2->drag_done_received_); | 365 EXPECT_FALSE(drag_view2->drag_done_received_); |
366 delete widget1; | 366 delete widget1; |
367 delete widget2; | 367 delete widget2; |
368 } | 368 } |
369 | 369 |
370 } // namespace test | 370 } // namespace test |
371 } // namespace aura | 371 } // namespace aura |
OLD | NEW |