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

Unified Diff: services/ui/public/cpp/tests/window_tree_client_private.cc

Issue 2322613002: Adds support for multiple displays to WmTestBase (Closed)
Patch Set: feedback Created 4 years, 3 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
« no previous file with comments | « services/ui/public/cpp/tests/window_tree_client_private.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/tests/window_tree_client_private.cc
diff --git a/services/ui/public/cpp/tests/window_tree_client_private.cc b/services/ui/public/cpp/tests/window_tree_client_private.cc
index 514f980398fc11331407ea442b83bc311de7c0c1..77c802048f689841039408845b22ff4e6d141d81 100644
--- a/services/ui/public/cpp/tests/window_tree_client_private.cc
+++ b/services/ui/public/cpp/tests/window_tree_client_private.cc
@@ -23,7 +23,7 @@ WindowTreeClientPrivate::~WindowTreeClientPrivate() {}
void WindowTreeClientPrivate::OnEmbed(mojom::WindowTree* window_tree) {
mojom::WindowDataPtr root_data(mojom::WindowData::New());
root_data->parent_id = 0;
- root_data->window_id = 1;
+ root_data->window_id = next_window_id_++;
root_data->properties.SetToEmpty();
root_data->visible = true;
const int64_t display_id = 1;
@@ -36,7 +36,7 @@ void WindowTreeClientPrivate::CallWmNewDisplayAdded(
const display::Display& display) {
mojom::WindowDataPtr root_data(mojom::WindowData::New());
root_data->parent_id = 0;
- root_data->window_id = 1;
+ root_data->window_id = next_window_id_++;
root_data->properties.SetToEmpty();
root_data->visible = true;
root_data->bounds = gfx::Rect(display.bounds().size());
« no previous file with comments | « services/ui/public/cpp/tests/window_tree_client_private.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698