| 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/test/test_windows.h" | 22 #include "ui/aura/test/test_windows.h" |
| 23 #include "ui/aura/window.h" | 23 #include "ui/aura/window.h" |
| 24 #include "ui/aura/window_tracker.h" | 24 #include "ui/aura/window_tracker.h" |
| 25 #include "ui/base/hit_test.h" | 25 #include "ui/base/hit_test.h" |
| 26 #include "ui/events/event.h" | 26 #include "ui/events/event.h" |
| 27 #include "ui/events/event_handler.h" | 27 #include "ui/events/event_handler.h" |
| 28 #include "ui/events/event_utils.h" | 28 #include "ui/events/event_utils.h" |
| 29 #include "ui/events/gestures/gesture_configuration.h" | 29 #include "ui/events/gestures/gesture_configuration.h" |
| 30 #include "ui/events/keycodes/keyboard_codes.h" | 30 #include "ui/events/keycodes/keyboard_codes.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 2220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2263 ui::EF_LEFT_MOUSE_BUTTON); | 2263 ui::EF_LEFT_MOUSE_BUTTON); |
| 2264 DispatchEventUsingWindowDispatcher(&mouse); | 2264 DispatchEventUsingWindowDispatcher(&mouse); |
| 2265 EXPECT_TRUE(recorder_first.events().empty()); | 2265 EXPECT_TRUE(recorder_first.events().empty()); |
| 2266 ASSERT_EQ(1u, recorder_second.events().size()); | 2266 ASSERT_EQ(1u, recorder_second.events().size()); |
| 2267 EXPECT_EQ(ui::ET_MOUSE_PRESSED, recorder_second.events()[0]); | 2267 EXPECT_EQ(ui::ET_MOUSE_PRESSED, recorder_second.events()[0]); |
| 2268 EXPECT_EQ(event_location.ToString(), | 2268 EXPECT_EQ(event_location.ToString(), |
| 2269 recorder_second.mouse_locations()[0].ToString()); | 2269 recorder_second.mouse_locations()[0].ToString()); |
| 2270 } | 2270 } |
| 2271 | 2271 |
| 2272 } // namespace aura | 2272 } // namespace aura |
| OLD | NEW |