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 "services/ui/public/cpp/tests/window_tree_client_private.h" | 5 #include "services/ui/public/cpp/tests/window_tree_client_private.h" |
6 | 6 |
7 #include "services/ui/public/cpp/window.h" | 7 #include "services/ui/public/cpp/window.h" |
8 #include "services/ui/public/cpp/window_tree_client.h" | 8 #include "services/ui/public/cpp/window_tree_client.h" |
9 #include "ui/display/display.h" | 9 #include "ui/display/display.h" |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 const bool parent_drawn = true; | 46 const bool parent_drawn = true; |
47 tree_client_impl_->WmNewDisplayAddedImpl(display, std::move(root_data), | 47 tree_client_impl_->WmNewDisplayAddedImpl(display, std::move(root_data), |
48 parent_drawn); | 48 parent_drawn); |
49 } | 49 } |
50 | 50 |
51 void WindowTreeClientPrivate::CallOnWindowInputEvent( | 51 void WindowTreeClientPrivate::CallOnWindowInputEvent( |
52 Window* window, | 52 Window* window, |
53 std::unique_ptr<ui::Event> event) { | 53 std::unique_ptr<ui::Event> event) { |
54 const uint32_t event_id = 0u; | 54 const uint32_t event_id = 0u; |
55 const uint32_t observer_id = 0u; | 55 const uint32_t observer_id = 0u; |
56 tree_client_impl_->OnWindowInputEvent(event_id, window->server_id(), | 56 mojo::Array<uint32_t> observer_ids; |
57 std::move(event), observer_id); | 57 observer_ids.push_back(observer_id); |
| 58 tree_client_impl_->OnWindowInputEvent( |
| 59 event_id, window->server_id(), std::move(event), std::move(observer_ids)); |
58 } | 60 } |
59 | 61 |
60 void WindowTreeClientPrivate::SetTreeAndClientId(mojom::WindowTree* window_tree, | 62 void WindowTreeClientPrivate::SetTreeAndClientId(mojom::WindowTree* window_tree, |
61 ClientSpecificId client_id) { | 63 ClientSpecificId client_id) { |
62 tree_client_impl_->tree_ = window_tree; | 64 tree_client_impl_->tree_ = window_tree; |
63 tree_client_impl_->client_id_ = client_id; | 65 tree_client_impl_->client_id_ = client_id; |
64 } | 66 } |
65 | 67 |
66 } // namespace ui | 68 } // namespace ui |
OLD | NEW |