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

Unified Diff: components/mus/demo/mus_demo.cc

Issue 2018823002: Eliminate WindowTreeConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@connection
Patch Set: . 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
« no previous file with comments | « components/mus/demo/mus_demo.h ('k') | components/mus/public/cpp/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/demo/mus_demo.cc
diff --git a/components/mus/demo/mus_demo.cc b/components/mus/demo/mus_demo.cc
index 48198c891738baa4de4feac4cfeda5191c8c7807..c5f02f614f2252bcc6f9a571f8de2ac818913b80 100644
--- a/components/mus/demo/mus_demo.cc
+++ b/components/mus/demo/mus_demo.cc
@@ -6,7 +6,7 @@
#include "base/time/time.h"
#include "components/bitmap_uploader/bitmap_uploader.h"
-#include "components/mus/public/cpp/window_tree_connection.h"
+#include "components/mus/public/cpp/window_tree_client.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkImageInfo.h"
@@ -87,7 +87,7 @@ void MusDemo::OnEmbed(mus::Window* window) {
void MusDemo::OnUnembed(mus::Window* root) {}
-void MusDemo::OnConnectionLost(mus::WindowTreeConnection* connection) {
+void MusDemo::OnWindowTreeClientDestroyed(mus::WindowTreeClient* client) {
timer_.Stop();
}
@@ -96,9 +96,7 @@ void MusDemo::OnEventObserved(const ui::Event& event, mus::Window* target) {}
// mus::mojom::WindowManagerFactory:
void MusDemo::CreateWindowManager(mus::mojom::DisplayPtr display,
mus::mojom::WindowTreeClientRequest request) {
- mus::WindowTreeConnection::CreateForWindowManager(
- this, std::move(request),
- mus::WindowTreeConnection::CreateType::DONT_WAIT_FOR_EMBED, this);
+ new mus::WindowTreeClient(this, this, std::move(request));
}
// mus::WindowManagerDelegate:
« no previous file with comments | « components/mus/demo/mus_demo.h ('k') | components/mus/public/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698