OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/autoclick/autoclick_controller.h" | 5 #include "ash/autoclick/autoclick_controller.h" |
6 #include "ash/shell.h" | 6 #include "ash/shell.h" |
7 #include "ash/test/ash_test_base.h" | 7 #include "ash/test/ash_test_base.h" |
| 8 #include "ui/aura/root_window.h" |
8 #include "ui/aura/test/event_generator.h" | 9 #include "ui/aura/test/event_generator.h" |
9 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
10 #include "ui/events/event.h" | 11 #include "ui/events/event.h" |
11 #include "ui/events/event_constants.h" | 12 #include "ui/events/event_constants.h" |
12 #include "ui/events/event_handler.h" | 13 #include "ui/events/event_handler.h" |
13 #include "ui/events/keycodes/keyboard_codes.h" | 14 #include "ui/events/keycodes/keyboard_codes.h" |
14 | 15 |
15 namespace ash { | 16 namespace ash { |
16 | 17 |
17 class MouseEventCapturer : public ui::EventHandler { | 18 class MouseEventCapturer : public ui::EventHandler { |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 generator2.MoveMouseTo(300, 400); | 253 generator2.MoveMouseTo(300, 400); |
253 events = WaitForMouseEvents(); | 254 events = WaitForMouseEvents(); |
254 EXPECT_EQ(2u, events.size()); | 255 EXPECT_EQ(2u, events.size()); |
255 EXPECT_EQ(300, events[0].root_location().x()); | 256 EXPECT_EQ(300, events[0].root_location().x()); |
256 EXPECT_EQ(400, events[0].root_location().y()); | 257 EXPECT_EQ(400, events[0].root_location().y()); |
257 | 258 |
258 // Test movement threshold between displays. | 259 // Test movement threshold between displays. |
259 } | 260 } |
260 | 261 |
261 } // namespace ash | 262 } // namespace ash |
OLD | NEW |