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

Unified Diff: components/mus/public/cpp/tests/window_tree_client_impl_private.cc

Issue 2019013002: mus: Send display-id to client only for the root windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: doc Created 4 years, 7 months 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/tests/window_tree_client_impl_private.cc
diff --git a/components/mus/public/cpp/tests/window_tree_client_impl_private.cc b/components/mus/public/cpp/tests/window_tree_client_impl_private.cc
index 807bab41d65150fe03a4510087f3498160061105..6ea06540eba3f1a25265bd2c6c2e99d10cf61bbc 100644
--- a/components/mus/public/cpp/tests/window_tree_client_impl_private.cc
+++ b/components/mus/public/cpp/tests/window_tree_client_impl_private.cc
@@ -31,8 +31,10 @@ void WindowTreeClientImplPrivate::OnEmbed(mojom::WindowTree* window_tree) {
root_data->bounds = mojo::Rect::From(gfx::Rect());
root_data->properties.SetToEmpty();
root_data->visible = true;
- root_data->display_id = 1;
- tree_client_impl_->OnEmbedImpl(window_tree, 1, std::move(root_data), 0, true);
+ const int64_t display_id = 1;
+ const Id focused_window_id = 0;
+ tree_client_impl_->OnEmbedImpl(window_tree, 1, std::move(root_data),
+ display_id, focused_window_id, true);
}
void WindowTreeClientImplPrivate::CallOnWindowInputEvent(

Powered by Google App Engine
This is Rietveld 408576698