OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "services/ui/ws/event_dispatcher.h" | 5 #include "services/ui/ws/event_dispatcher.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <queue> | 10 #include <queue> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ptr_util.h" |
13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
14 #include "services/ui/common/accelerator_util.h" | 15 #include "services/ui/common/accelerator_util.h" |
15 #include "services/ui/ws/accelerator.h" | 16 #include "services/ui/ws/accelerator.h" |
16 #include "services/ui/ws/event_dispatcher_delegate.h" | 17 #include "services/ui/ws/event_dispatcher_delegate.h" |
17 #include "services/ui/ws/server_window.h" | 18 #include "services/ui/ws/server_window.h" |
18 #include "services/ui/ws/server_window_compositor_frame_sink_manager_test_api.h" | 19 #include "services/ui/ws/server_window_compositor_frame_sink_manager_test_api.h" |
19 #include "services/ui/ws/test_server_window_delegate.h" | 20 #include "services/ui/ws/test_server_window_delegate.h" |
20 #include "services/ui/ws/test_utils.h" | 21 #include "services/ui/ws/test_utils.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "ui/events/event.h" | 23 #include "ui/events/event.h" |
(...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1705 // The delegate can decide if it really wants to forward the event or not. | 1706 // The delegate can decide if it really wants to forward the event or not. |
1706 EXPECT_EQ(child.get(), | 1707 EXPECT_EQ(child.get(), |
1707 test_event_dispatcher_delegate()->lost_capture_window()); | 1708 test_event_dispatcher_delegate()->lost_capture_window()); |
1708 EXPECT_EQ(child.get(), event_dispatcher()->capture_window()); | 1709 EXPECT_EQ(child.get(), event_dispatcher()->capture_window()); |
1709 EXPECT_EQ(kClientAreaId, event_dispatcher()->capture_window_client_id()); | 1710 EXPECT_EQ(kClientAreaId, event_dispatcher()->capture_window_client_id()); |
1710 } | 1711 } |
1711 | 1712 |
1712 } // namespace test | 1713 } // namespace test |
1713 } // namespace ws | 1714 } // namespace ws |
1714 } // namespace ui | 1715 } // namespace ui |
OLD | NEW |