| 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" | |
| 9 #include "ui/aura/test/event_generator.h" | 8 #include "ui/aura/test/event_generator.h" |
| 10 #include "ui/aura/test/test_window_delegate.h" | 9 #include "ui/aura/test/test_window_delegate.h" |
| 11 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
| 11 #include "ui/aura/window_event_dispatcher.h" |
| 12 #include "ui/events/event.h" | 12 #include "ui/events/event.h" |
| 13 #include "ui/events/event_constants.h" | 13 #include "ui/events/event_constants.h" |
| 14 #include "ui/events/event_handler.h" | 14 #include "ui/events/event_handler.h" |
| 15 #include "ui/events/keycodes/keyboard_codes.h" | 15 #include "ui/events/keycodes/keyboard_codes.h" |
| 16 | 16 |
| 17 namespace ash { | 17 namespace ash { |
| 18 | 18 |
| 19 class MouseEventCapturer : public ui::EventHandler { | 19 class MouseEventCapturer : public ui::EventHandler { |
| 20 public: | 20 public: |
| 21 MouseEventCapturer() { Reset(); } | 21 MouseEventCapturer() { Reset(); } |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 aura::test::EventCountDelegate delegate; | 301 aura::test::EventCountDelegate delegate; |
| 302 scoped_ptr<aura::Window> window(CreateTestWindowInShellWithDelegate( | 302 scoped_ptr<aura::Window> window(CreateTestWindowInShellWithDelegate( |
| 303 &delegate, 123, gfx::Rect(50, 50, 100, 100))); | 303 &delegate, 123, gfx::Rect(50, 50, 100, 100))); |
| 304 window->Show(); | 304 window->Show(); |
| 305 events = WaitForMouseEvents(); | 305 events = WaitForMouseEvents(); |
| 306 EXPECT_EQ(0u, events.size()); | 306 EXPECT_EQ(0u, events.size()); |
| 307 EXPECT_EQ("1 1 0", delegate.GetMouseMotionCountsAndReset()); | 307 EXPECT_EQ("1 1 0", delegate.GetMouseMotionCountsAndReset()); |
| 308 } | 308 } |
| 309 | 309 |
| 310 } // namespace ash | 310 } // namespace ash |
| OLD | NEW |