| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/public/cpp/tests/window_tree_client_private.h" | 5 #include "components/mus/public/cpp/tests/window_tree_client_private.h" |
| 6 | 6 |
| 7 #include "components/mus/public/cpp/window.h" | 7 #include "components/mus/public/cpp/window.h" |
| 8 #include "components/mus/public/cpp/window_tree_client.h" | 8 #include "components/mus/public/cpp/window_tree_client.h" |
| 9 #include "ui/events/mojo/input_events_type_converters.h" | |
| 10 | 9 |
| 11 namespace mus { | 10 namespace mus { |
| 12 | 11 |
| 13 WindowTreeClientPrivate::WindowTreeClientPrivate( | 12 WindowTreeClientPrivate::WindowTreeClientPrivate( |
| 14 WindowTreeClient* tree_client_impl) | 13 WindowTreeClient* tree_client_impl) |
| 15 : tree_client_impl_(tree_client_impl) {} | 14 : tree_client_impl_(tree_client_impl) {} |
| 16 | 15 |
| 17 WindowTreeClientPrivate::WindowTreeClientPrivate(Window* window) | 16 WindowTreeClientPrivate::WindowTreeClientPrivate(Window* window) |
| 18 : WindowTreeClientPrivate(window->window_tree()) {} | 17 : WindowTreeClientPrivate(window->window_tree()) {} |
| 19 | 18 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 38 void WindowTreeClientPrivate::CallOnWindowInputEvent( | 37 void WindowTreeClientPrivate::CallOnWindowInputEvent( |
| 39 Window* window, | 38 Window* window, |
| 40 std::unique_ptr<ui::Event> event) { | 39 std::unique_ptr<ui::Event> event) { |
| 41 const uint32_t event_id = 0u; | 40 const uint32_t event_id = 0u; |
| 42 const uint32_t observer_id = 0u; | 41 const uint32_t observer_id = 0u; |
| 43 tree_client_impl_->OnWindowInputEvent(event_id, window->server_id(), | 42 tree_client_impl_->OnWindowInputEvent(event_id, window->server_id(), |
| 44 std::move(event), observer_id); | 43 std::move(event), observer_id); |
| 45 } | 44 } |
| 46 | 45 |
| 47 } // namespace mus | 46 } // namespace mus |
| OLD | NEW |