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

Unified Diff: ui/aura/test/mus/window_tree_client_private.cc

Issue 2535983004: Makes sure bounds and visibilty are updated correctly for new displays (Closed)
Patch Set: merge Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/test/mus/window_tree_client_private.h ('k') | ui/aura/test/test_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/mus/window_tree_client_private.cc
diff --git a/ui/aura/test/mus/window_tree_client_private.cc b/ui/aura/test/mus/window_tree_client_private.cc
index 324ea3233966b84a74654d53ee6d94714baec24e..9157270ace059bc5a4b90888f9f25b564588005f 100644
--- a/ui/aura/test/mus/window_tree_client_private.cc
+++ b/ui/aura/test/mus/window_tree_client_private.cc
@@ -32,7 +32,7 @@ void WindowTreeClientPrivate::OnEmbed(ui::mojom::WindowTree* window_tree) {
display_id, focused_window_id, true);
}
-WindowTreeHost* WindowTreeClientPrivate::CallWmNewDisplayAdded(
+WindowTreeHostMus* WindowTreeClientPrivate::CallWmNewDisplayAdded(
const display::Display& display) {
ui::mojom::WindowDataPtr root_data(ui::mojom::WindowData::New());
root_data->parent_id = 0;
@@ -40,6 +40,13 @@ WindowTreeHost* WindowTreeClientPrivate::CallWmNewDisplayAdded(
root_data->visible = true;
root_data->bounds = gfx::Rect(display.bounds().size());
const bool parent_drawn = true;
+ return CallWmNewDisplayAdded(display, std::move(root_data), parent_drawn);
+}
+
+WindowTreeHostMus* WindowTreeClientPrivate::CallWmNewDisplayAdded(
+ const display::Display& display,
+ ui::mojom::WindowDataPtr root_data,
+ bool parent_drawn) {
return tree_client_impl_->WmNewDisplayAddedImpl(display, std::move(root_data),
parent_drawn);
}
« no previous file with comments | « ui/aura/test/mus/window_tree_client_private.h ('k') | ui/aura/test/test_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698