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/aura/window_event_dispatcher.h" | 5 #include "ui/aura/window_event_dispatcher.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "ui/aura/env.h" | 21 #include "ui/aura/env.h" |
22 #include "ui/aura/test/aura_test_base.h" | 22 #include "ui/aura/test/aura_test_base.h" |
23 #include "ui/aura/test/env_test_helper.h" | 23 #include "ui/aura/test/env_test_helper.h" |
24 #include "ui/aura/test/test_cursor_client.h" | 24 #include "ui/aura/test/test_cursor_client.h" |
25 #include "ui/aura/test/test_screen.h" | 25 #include "ui/aura/test/test_screen.h" |
26 #include "ui/aura/test/test_window_delegate.h" | 26 #include "ui/aura/test/test_window_delegate.h" |
27 #include "ui/aura/test/test_windows.h" | 27 #include "ui/aura/test/test_windows.h" |
28 #include "ui/aura/window.h" | 28 #include "ui/aura/window.h" |
29 #include "ui/aura/window_tracker.h" | 29 #include "ui/aura/window_tracker.h" |
30 #include "ui/base/hit_test.h" | 30 #include "ui/base/hit_test.h" |
| 31 #include "ui/display/screen.h" |
31 #include "ui/events/event.h" | 32 #include "ui/events/event.h" |
32 #include "ui/events/event_handler.h" | 33 #include "ui/events/event_handler.h" |
33 #include "ui/events/event_utils.h" | 34 #include "ui/events/event_utils.h" |
34 #include "ui/events/gesture_detection/gesture_configuration.h" | 35 #include "ui/events/gesture_detection/gesture_configuration.h" |
35 #include "ui/events/keycodes/keyboard_codes.h" | 36 #include "ui/events/keycodes/keyboard_codes.h" |
36 #include "ui/events/test/event_generator.h" | 37 #include "ui/events/test/event_generator.h" |
37 #include "ui/events/test/test_event_handler.h" | 38 #include "ui/events/test/test_event_handler.h" |
38 #include "ui/gfx/geometry/point.h" | 39 #include "ui/gfx/geometry/point.h" |
39 #include "ui/gfx/geometry/rect.h" | 40 #include "ui/gfx/geometry/rect.h" |
40 #include "ui/gfx/screen.h" | |
41 #include "ui/gfx/transform.h" | 41 #include "ui/gfx/transform.h" |
42 | 42 |
43 namespace aura { | 43 namespace aura { |
44 namespace { | 44 namespace { |
45 | 45 |
46 // A delegate that always returns a non-client component for hit tests. | 46 // A delegate that always returns a non-client component for hit tests. |
47 class NonClientDelegate : public test::TestWindowDelegate { | 47 class NonClientDelegate : public test::TestWindowDelegate { |
48 public: | 48 public: |
49 NonClientDelegate() | 49 NonClientDelegate() |
50 : non_client_count_(0), | 50 : non_client_count_(0), |
(...skipping 2612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2663 // 2x. A ET_MOUSE_EXITED event should have been sent to |w|. | 2663 // 2x. A ET_MOUSE_EXITED event should have been sent to |w|. |
2664 test_screen()->SetDeviceScaleFactor(2.f); | 2664 test_screen()->SetDeviceScaleFactor(2.f); |
2665 dispatcher->OnCursorMovedToRootLocation(gfx::Point(11, 11)); | 2665 dispatcher->OnCursorMovedToRootLocation(gfx::Point(11, 11)); |
2666 RunAllPendingInMessageLoop(); | 2666 RunAllPendingInMessageLoop(); |
2667 EXPECT_TRUE(recorder.HasReceivedEvent(ui::ET_MOUSE_EXITED)); | 2667 EXPECT_TRUE(recorder.HasReceivedEvent(ui::ET_MOUSE_EXITED)); |
2668 | 2668 |
2669 w->RemovePreTargetHandler(&recorder); | 2669 w->RemovePreTargetHandler(&recorder); |
2670 } | 2670 } |
2671 | 2671 |
2672 } // namespace aura | 2672 } // namespace aura |
OLD | NEW |