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

Unified Diff: components/mus/public/cpp/lib/window_tree_client_impl.cc

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, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: components/mus/public/cpp/lib/window_tree_client_impl.cc
diff --git a/components/mus/public/cpp/lib/window_tree_client_impl.cc b/components/mus/public/cpp/lib/window_tree_client_impl.cc
index cf450d80e1eca01c393d8536021277df35492cb4..194ec6bae01b3ffa6762ca015aa9ab0e6044d3af 100644
--- a/components/mus/public/cpp/lib/window_tree_client_impl.cc
+++ b/components/mus/public/cpp/lib/window_tree_client_impl.cc
@@ -263,13 +263,13 @@ void WindowTreeClientImpl::Embed(
tree_->Embed(window_id, client.Pass(), policy_bitmask, callback);
}
-void WindowTreeClientImpl::RequestSurface(
+void WindowTreeClientImpl::AttachSurface(
Id window_id,
mojom::SurfaceType type,
mojo::InterfaceRequest<mojom::Surface> surface,
mojom::SurfaceClientPtr client) {
DCHECK(tree_);
- tree_->RequestSurface(window_id, type, surface.Pass(), client.Pass());
+ tree_->AttachSurface(window_id, type, surface.Pass(), client.Pass());
}
void WindowTreeClientImpl::AddWindow(Window* window) {
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_client_impl.h ('k') | components/mus/public/cpp/tests/test_window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698