| 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 "components/mus/ws/event_dispatcher.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
| 7 #include "components/mus/public/cpp/event_matcher.h" | 11 #include "components/mus/public/cpp/event_matcher.h" |
| 8 #include "components/mus/ws/event_dispatcher_delegate.h" | 12 #include "components/mus/ws/event_dispatcher_delegate.h" |
| 9 #include "components/mus/ws/server_window.h" | 13 #include "components/mus/ws/server_window.h" |
| 10 #include "components/mus/ws/server_window_surface_manager_test_api.h" | 14 #include "components/mus/ws/server_window_surface_manager_test_api.h" |
| 11 #include "components/mus/ws/test_server_window_delegate.h" | 15 #include "components/mus/ws/test_server_window_delegate.h" |
| 12 #include "mojo/converters/input_events/input_events_type_converters.h" | 16 #include "mojo/converters/input_events/input_events_type_converters.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "ui/events/event.h" | 18 #include "ui/events/event.h" |
| 15 | 19 |
| 16 namespace mus { | 20 namespace mus { |
| (...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 dispatched_event_mojo.To<scoped_ptr<ui::Event>>()); | 645 dispatched_event_mojo.To<scoped_ptr<ui::Event>>()); |
| 642 ASSERT_TRUE(dispatched_event.get()); | 646 ASSERT_TRUE(dispatched_event.get()); |
| 643 ASSERT_TRUE(dispatched_event->IsMouseEvent()); | 647 ASSERT_TRUE(dispatched_event->IsMouseEvent()); |
| 644 ui::MouseEvent* dispatched_mouse_event = | 648 ui::MouseEvent* dispatched_mouse_event = |
| 645 static_cast<ui::MouseEvent*>(dispatched_event.get()); | 649 static_cast<ui::MouseEvent*>(dispatched_event.get()); |
| 646 EXPECT_EQ(gfx::Point(-2, -1), dispatched_mouse_event->location()); | 650 EXPECT_EQ(gfx::Point(-2, -1), dispatched_mouse_event->location()); |
| 647 } | 651 } |
| 648 | 652 |
| 649 } // namespace ws | 653 } // namespace ws |
| 650 } // namespace mus | 654 } // namespace mus |
| OLD | NEW |