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" | 9 #include "ui/events/mojo/input_events_type_converters.h" |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 root_data->properties.SetToEmpty(); | 30 root_data->properties.SetToEmpty(); |
31 root_data->visible = true; | 31 root_data->visible = true; |
32 const int64_t display_id = 1; | 32 const int64_t display_id = 1; |
33 const Id focused_window_id = 0; | 33 const Id focused_window_id = 0; |
34 tree_client_impl_->OnEmbedImpl(window_tree, 1, std::move(root_data), | 34 tree_client_impl_->OnEmbedImpl(window_tree, 1, std::move(root_data), |
35 display_id, focused_window_id, true); | 35 display_id, focused_window_id, true); |
36 } | 36 } |
37 | 37 |
38 void WindowTreeClientPrivate::CallOnWindowInputEvent( | 38 void WindowTreeClientPrivate::CallOnWindowInputEvent( |
39 Window* window, | 39 Window* window, |
40 const ui::Event& event) { | 40 std::unique_ptr<ui::Event> event) { |
41 const uint32_t event_id = 0u; | 41 const uint32_t event_id = 0u; |
42 const uint32_t observer_id = 0u; | 42 const uint32_t observer_id = 0u; |
43 tree_client_impl_->OnWindowInputEvent(event_id, window->server_id(), | 43 tree_client_impl_->OnWindowInputEvent(event_id, window->server_id(), |
44 mojom::Event::From(event), observer_id); | 44 std::move(event), observer_id); |
45 } | 45 } |
46 | 46 |
47 } // namespace mus | 47 } // namespace mus |
OLD | NEW |