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

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

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 | « no previous file | components/mus/demo/mus_demo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/demo/mus_demo.h
diff --git a/components/mus/demo/mus_demo.h b/components/mus/demo/mus_demo.h
index 4632a951f196a2e387bb3bf4803cae29121bdebd..28c9de2e8736818ef6b1dd9b19b498986ded6be2 100644
--- a/components/mus/demo/mus_demo.h
+++ b/components/mus/demo/mus_demo.h
@@ -15,7 +15,7 @@
#include "base/timer/timer.h"
#include "components/mus/public/cpp/window.h"
#include "components/mus/public/cpp/window_manager_delegate.h"
-#include "components/mus/public/cpp/window_tree_delegate.h"
+#include "components/mus/public/cpp/window_tree_client_delegate.h"
#include "components/mus/public/interfaces/window_manager_factory.mojom.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/shell/public/cpp/connector.h"
@@ -33,7 +33,7 @@ namespace mus_demo {
// simple way to demonstrate that the graphic stack works as intended.
class MusDemo : public shell::ShellClient,
public mus::mojom::WindowManagerFactory,
- public mus::WindowTreeDelegate,
+ public mus::WindowTreeClientDelegate,
public mus::WindowManagerDelegate {
public:
MusDemo();
@@ -46,10 +46,10 @@ class MusDemo : public shell::ShellClient,
uint32_t id) override;
bool AcceptConnection(shell::Connection* connection) override;
- // WindowTreeDelegate:
+ // WindowTreeClientDelegate:
void OnEmbed(mus::Window* root) override;
void OnUnembed(mus::Window* root) override;
- void OnConnectionLost(mus::WindowTreeConnection* connection) override;
+ void OnWindowTreeClientDestroyed(mus::WindowTreeClient* client) override;
void OnEventObserved(const ui::Event& event, mus::Window* target) override;
// mus::mojom::WindowManagerFactory:
@@ -79,7 +79,6 @@ class MusDemo : public shell::ShellClient,
shell::Connector* connector_ = nullptr;
mus::Window* window_ = nullptr;
- std::unique_ptr<mus::WindowTreeConnection> window_tree_connection_;
mus::WindowManagerClient* window_manager_client_ = nullptr;
mojo::Binding<mus::mojom::WindowManagerFactory>
window_manager_factory_binding_;
« no previous file with comments | « no previous file | components/mus/demo/mus_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698