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

Unified Diff: services/ui/public/cpp/window_tree_client.cc

Issue 2503623002: Support creation of toplevel mus::Windows on separate displays (Closed)
Patch Set: Fix container root lookup. Don't need to initialize container id for unit test. Created 4 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: services/ui/public/cpp/window_tree_client.cc
diff --git a/services/ui/public/cpp/window_tree_client.cc b/services/ui/public/cpp/window_tree_client.cc
index 11e73b05533d8f45fb7c94dd285dadeb1e01723d..611b584543cf07b6d6b8fce8a122424e5fcff65d 100644
--- a/services/ui/public/cpp/window_tree_client.cc
+++ b/services/ui/public/cpp/window_tree_client.cc
@@ -5,7 +5,6 @@
#include "services/ui/public/cpp/window_tree_client.h"
#include <stddef.h>
-
#include <string>
#include <utility>
#include <vector>
@@ -503,8 +502,10 @@ Window* WindowTreeClient::NewWindowImpl(
DCHECK(tree_);
Window* window =
new Window(this, MakeTransportId(client_id_, next_window_id_++));
+
if (properties)
window->properties_ = *properties;
+
AddWindow(window);
const uint32_t change_id =
@@ -518,6 +519,15 @@ Window* WindowTreeClient::NewWindowImpl(
mojo::Map<mojo::String, mojo::Array<uint8_t>>::From(*properties);
}
if (type == NewWindowType::CHILD) {
+ // LOG(ERROR) << "\n\n WindowTreeClient::NewWindowImpl
+ // transport_properties ";
+ // for (auto i = transport_properties.begin(); i !=
+ // transport_properties.end(); ++i)
+ // {
+ // LOG(ERROR) << "\n transport_properties->first " << i->first;
+ // // do something with it here like adding it to a vector
+ // }
+
tree_->NewWindow(change_id, server_id(window),
std::move(transport_properties));
} else {
« ash/common/wm/container_finder.cc ('K') | « ash/mus/window_manager_ash_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698