OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "components/mus/common/types.h" | 10 #include "components/mus/common/types.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 void SetWindowTextInputState(Id window_id, mojo::TextInputStatePtr state); | 74 void SetWindowTextInputState(Id window_id, mojo::TextInputStatePtr state); |
75 void SetImeVisibility(Id window_id, | 75 void SetImeVisibility(Id window_id, |
76 bool visible, | 76 bool visible, |
77 mojo::TextInputStatePtr state); | 77 mojo::TextInputStatePtr state); |
78 | 78 |
79 void Embed(Id window_id, | 79 void Embed(Id window_id, |
80 mojom::WindowTreeClientPtr client, | 80 mojom::WindowTreeClientPtr client, |
81 uint32_t policy_bitmask, | 81 uint32_t policy_bitmask, |
82 const mojom::WindowTree::EmbedCallback& callback); | 82 const mojom::WindowTree::EmbedCallback& callback); |
83 | 83 |
84 void RequestSurface(Id window_id, | 84 void AttachSurface(Id window_id, |
85 mojom::SurfaceType type, | 85 mojom::SurfaceType type, |
86 mojo::InterfaceRequest<mojom::Surface> surface, | 86 mojo::InterfaceRequest<mojom::Surface> surface, |
87 mojom::SurfaceClientPtr client); | 87 mojom::SurfaceClientPtr client); |
88 | 88 |
89 void set_change_acked_callback(const mojo::Callback<void(void)>& callback) { | 89 void set_change_acked_callback(const mojo::Callback<void(void)>& callback) { |
90 change_acked_callback_ = callback; | 90 change_acked_callback_ = callback; |
91 } | 91 } |
92 void ClearChangeAckedCallback() { change_acked_callback_.reset(); } | 92 void ClearChangeAckedCallback() { change_acked_callback_.reset(); } |
93 | 93 |
94 // Start/stop tracking windows. While tracked, they can be retrieved via | 94 // Start/stop tracking windows. While tracked, they can be retrieved via |
95 // WindowTreeConnection::GetWindowById. | 95 // WindowTreeConnection::GetWindowById. |
96 void AddWindow(Window* window); | 96 void AddWindow(Window* window); |
97 void RemoveWindow(Id window_id); | 97 void RemoveWindow(Id window_id); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 bool is_embed_root_; | 219 bool is_embed_root_; |
220 | 220 |
221 bool in_destructor_; | 221 bool in_destructor_; |
222 | 222 |
223 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); | 223 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); |
224 }; | 224 }; |
225 | 225 |
226 } // namespace mus | 226 } // namespace mus |
227 | 227 |
228 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 228 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
OLD | NEW |