Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: components/mus/public/cpp/lib/window_tree_client_impl.h

Issue 1484533002: mus: Introduce AttachSurface to allow creating Surface prior to OnEmbed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Sadrul's comments Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/window_surface.cc ('k') | components/mus/public/cpp/lib/window_tree_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698