| 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 "components/mus/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/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "components/mus/common/event_matcher_util.h" | 14 #include "services/ui/common/event_matcher_util.h" |
| 15 #include "components/mus/ws/accelerator.h" | 15 #include "services/ui/ws/accelerator.h" |
| 16 #include "components/mus/ws/event_dispatcher_delegate.h" | 16 #include "services/ui/ws/event_dispatcher_delegate.h" |
| 17 #include "components/mus/ws/server_window.h" | 17 #include "services/ui/ws/server_window.h" |
| 18 #include "components/mus/ws/server_window_surface_manager_test_api.h" | 18 #include "services/ui/ws/server_window_surface_manager_test_api.h" |
| 19 #include "components/mus/ws/test_server_window_delegate.h" | 19 #include "services/ui/ws/test_server_window_delegate.h" |
| 20 #include "components/mus/ws/test_utils.h" | 20 #include "services/ui/ws/test_utils.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 #include "ui/events/event.h" | 22 #include "ui/events/event.h" |
| 23 | 23 |
| 24 namespace mus { | 24 namespace mus { |
| 25 namespace ws { | 25 namespace ws { |
| 26 namespace test { | 26 namespace test { |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 // Client ids used to indicate the client area and non-client area. | 29 // Client ids used to indicate the client area and non-client area. |
| 30 const ClientSpecificId kClientAreaId = 11; | 30 const ClientSpecificId kClientAreaId = 11; |
| (...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1605 // The delegate can decide if it really wants to forward the event or not. | 1605 // The delegate can decide if it really wants to forward the event or not. |
| 1606 EXPECT_EQ(child.get(), | 1606 EXPECT_EQ(child.get(), |
| 1607 test_event_dispatcher_delegate()->lost_capture_window()); | 1607 test_event_dispatcher_delegate()->lost_capture_window()); |
| 1608 EXPECT_EQ(child.get(), event_dispatcher()->capture_window()); | 1608 EXPECT_EQ(child.get(), event_dispatcher()->capture_window()); |
| 1609 EXPECT_EQ(kClientAreaId, event_dispatcher()->capture_window_client_id()); | 1609 EXPECT_EQ(kClientAreaId, event_dispatcher()->capture_window_client_id()); |
| 1610 } | 1610 } |
| 1611 | 1611 |
| 1612 } // namespace test | 1612 } // namespace test |
| 1613 } // namespace ws | 1613 } // namespace ws |
| 1614 } // namespace mus | 1614 } // namespace mus |
| OLD | NEW |