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

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

Issue 2503623002: Support creation of toplevel mus::Windows on separate displays (Closed)
Patch Set: Clean up/format code. 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..9d73e5ba91263805e91e29a3cad76c861d4135b8 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,6 +502,7 @@ Window* WindowTreeClient::NewWindowImpl(
DCHECK(tree_);
Window* window =
new Window(this, MakeTransportId(client_id_, next_window_id_++));
+
if (properties)
window->properties_ = *properties;
AddWindow(window);
@@ -518,6 +518,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/mus/root_window_controller.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