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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "ui/aura/window.h" | 22 #include "ui/aura/window.h" |
23 #include "ui/aura/window_tracker.h" | 23 #include "ui/aura/window_tracker.h" |
24 #include "ui/base/hit_test.h" | 24 #include "ui/base/hit_test.h" |
25 #include "ui/events/event.h" | 25 #include "ui/events/event.h" |
26 #include "ui/events/event_handler.h" | 26 #include "ui/events/event_handler.h" |
27 #include "ui/events/event_utils.h" | 27 #include "ui/events/event_utils.h" |
28 #include "ui/events/gesture_detection/gesture_configuration.h" | 28 #include "ui/events/gesture_detection/gesture_configuration.h" |
29 #include "ui/events/keycodes/keyboard_codes.h" | 29 #include "ui/events/keycodes/keyboard_codes.h" |
30 #include "ui/events/test/event_generator.h" | 30 #include "ui/events/test/event_generator.h" |
31 #include "ui/events/test/test_event_handler.h" | 31 #include "ui/events/test/test_event_handler.h" |
32 #include "ui/gfx/point.h" | 32 #include "ui/gfx/geometry/point.h" |
33 #include "ui/gfx/rect.h" | 33 #include "ui/gfx/rect.h" |
34 #include "ui/gfx/screen.h" | 34 #include "ui/gfx/screen.h" |
35 #include "ui/gfx/transform.h" | 35 #include "ui/gfx/transform.h" |
36 | 36 |
37 namespace aura { | 37 namespace aura { |
38 namespace { | 38 namespace { |
39 | 39 |
40 // A delegate that always returns a non-client component for hit tests. | 40 // A delegate that always returns a non-client component for hit tests. |
41 class NonClientDelegate : public test::TestWindowDelegate { | 41 class NonClientDelegate : public test::TestWindowDelegate { |
42 public: | 42 public: |
(...skipping 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2427 0, | 2427 0, |
2428 ui::EventTimeForNow() + base::TimeDelta::FromSeconds(1)); | 2428 ui::EventTimeForNow() + base::TimeDelta::FromSeconds(1)); |
2429 DispatchEventUsingWindowDispatcher(&release); | 2429 DispatchEventUsingWindowDispatcher(&release); |
2430 EXPECT_FALSE(recorder.LastTouchMayCauseScrolling()); | 2430 EXPECT_FALSE(recorder.LastTouchMayCauseScrolling()); |
2431 EXPECT_TRUE(recorder.HasReceivedEvent(ui::ET_TOUCH_RELEASED)); | 2431 EXPECT_TRUE(recorder.HasReceivedEvent(ui::ET_TOUCH_RELEASED)); |
2432 EXPECT_TRUE(recorder.HasReceivedEvent(ui::ET_GESTURE_SCROLL_END)); | 2432 EXPECT_TRUE(recorder.HasReceivedEvent(ui::ET_GESTURE_SCROLL_END)); |
2433 | 2433 |
2434 root_window()->RemovePreTargetHandler(&recorder); | 2434 root_window()->RemovePreTargetHandler(&recorder); |
2435 } | 2435 } |
2436 } // namespace aura | 2436 } // namespace aura |
OLD | NEW |