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 "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 "ash/wm/root_window_event_filter.h" | |
10 #include "base/location.h" | 9 #include "base/location.h" |
11 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
12 #include "ui/aura/event.h" | 11 #include "ui/aura/event.h" |
13 #include "ui/aura/root_window.h" | 12 #include "ui/aura/root_window.h" |
| 13 #include "ui/aura/shared/root_window_event_filter.h" |
14 #include "ui/aura/test/event_generator.h" | 14 #include "ui/aura/test/event_generator.h" |
15 #include "ui/base/clipboard/clipboard.h" | 15 #include "ui/base/clipboard/clipboard.h" |
16 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 16 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
17 #include "ui/base/dragdrop/drag_drop_types.h" | 17 #include "ui/base/dragdrop/drag_drop_types.h" |
18 #include "ui/base/dragdrop/os_exchange_data.h" | 18 #include "ui/base/dragdrop/os_exchange_data.h" |
19 #include "ui/views/events/event.h" | 19 #include "ui/views/events/event.h" |
20 #include "ui/views/test/test_views_delegate.h" | 20 #include "ui/views/test/test_views_delegate.h" |
21 #include "ui/views/view.h" | 21 #include "ui/views/view.h" |
22 #include "ui/views/views_delegate.h" | 22 #include "ui/views/views_delegate.h" |
23 #include "ui/views/widget/widget.h" | 23 #include "ui/views/widget/widget.h" |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 EXPECT_EQ(1, drag_view->num_drag_enters_); | 579 EXPECT_EQ(1, drag_view->num_drag_enters_); |
580 EXPECT_EQ(num_drags - 1 - drag_view->VerticalDragThreshold(), | 580 EXPECT_EQ(num_drags - 1 - drag_view->VerticalDragThreshold(), |
581 drag_view->num_drag_updates_); | 581 drag_view->num_drag_updates_); |
582 EXPECT_EQ(1, drag_view->num_drops_); | 582 EXPECT_EQ(1, drag_view->num_drops_); |
583 EXPECT_EQ(0, drag_view->num_drag_exits_); | 583 EXPECT_EQ(0, drag_view->num_drag_exits_); |
584 EXPECT_TRUE(drag_view->drag_done_received_); | 584 EXPECT_TRUE(drag_view->drag_done_received_); |
585 } | 585 } |
586 | 586 |
587 } // namespace test | 587 } // namespace test |
588 } // namespace aura | 588 } // namespace aura |
OLD | NEW |