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 "ui/aura/test/mus/window_tree_client_private.h" | 5 #include "ui/aura/test/mus/window_tree_client_private.h" |
6 | 6 |
7 #include "ui/aura/mus/window_port_mus.h" | 7 #include "ui/aura/mus/window_port_mus.h" |
8 #include "ui/aura/mus/window_tree_client.h" | 8 #include "ui/aura/mus/window_tree_client.h" |
9 #include "ui/aura/mus/window_tree_host_mus_init_params.h" | 9 #include "ui/aura/mus/window_tree_host_mus_init_params.h" |
10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 return tree_client_impl_->CreateInitParamsForNewDisplay(); | 92 return tree_client_impl_->CreateInitParamsForNewDisplay(); |
93 } | 93 } |
94 | 94 |
95 void WindowTreeClientPrivate::SetTreeAndClientId( | 95 void WindowTreeClientPrivate::SetTreeAndClientId( |
96 ui::mojom::WindowTree* window_tree, | 96 ui::mojom::WindowTree* window_tree, |
97 ClientSpecificId client_id) { | 97 ClientSpecificId client_id) { |
98 tree_client_impl_->WindowTreeConnectionEstablished(window_tree); | 98 tree_client_impl_->WindowTreeConnectionEstablished(window_tree); |
99 tree_client_impl_->client_id_ = client_id; | 99 tree_client_impl_->client_id_ = client_id; |
100 } | 100 } |
101 | 101 |
| 102 void WindowTreeClientPrivate::SetWindowManagerClient( |
| 103 ui::mojom::WindowManagerClient* client) { |
| 104 tree_client_impl_->window_manager_client_ = client; |
| 105 } |
| 106 |
102 bool WindowTreeClientPrivate::HasPointerWatcher() { | 107 bool WindowTreeClientPrivate::HasPointerWatcher() { |
103 return tree_client_impl_->has_pointer_watcher_; | 108 return tree_client_impl_->has_pointer_watcher_; |
104 } | 109 } |
105 | 110 |
106 Window* WindowTreeClientPrivate::GetWindowByServerId(Id id) { | 111 Window* WindowTreeClientPrivate::GetWindowByServerId(Id id) { |
107 WindowMus* window = tree_client_impl_->GetWindowByServerId(id); | 112 WindowMus* window = tree_client_impl_->GetWindowByServerId(id); |
108 return window ? window->GetWindow() : nullptr; | 113 return window ? window->GetWindow() : nullptr; |
109 } | 114 } |
110 | 115 |
111 } // namespace aura | 116 } // namespace aura |
OLD | NEW |