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

Unified Diff: ui/views/mus/window_manager_connection.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 | « ui/views/mus/surface_binding.cc ('k') | ui/views/mus/window_manager_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/window_manager_connection.h
diff --git a/ui/views/mus/window_manager_connection.h b/ui/views/mus/window_manager_connection.h
index 049e09509afb35c23ca2f7a6217e4d5e65610778..928243b5755701b04adb258b7196fcc73912e9a1 100644
--- a/ui/views/mus/window_manager_connection.h
+++ b/ui/views/mus/window_manager_connection.h
@@ -11,7 +11,7 @@
#include "base/macros.h"
#include "base/observer_list.h"
-#include "components/mus/public/cpp/window_tree_delegate.h"
+#include "components/mus/public/cpp/window_tree_client_delegate.h"
#include "services/shell/public/cpp/identity.h"
#include "ui/views/mus/mus_export.h"
#include "ui/views/mus/screen_mus_delegate.h"
@@ -31,14 +31,14 @@ class NativeWidgetDelegate;
// Provides configuration to mus in views. This consists of the following:
// . Provides a Screen implementation backed by mus.
-// . Creates and owns a WindowTreeConnection.
+// . Creates and owns a WindowTreeClient.
// . Registers itself as the factory for creating NativeWidgets so that a
// NativeWidgetMus is created.
// WindowManagerConnection is a singleton and should be created early on.
//
// TODO(sky): this name is now totally confusing. Come up with a better one.
class VIEWS_MUS_EXPORT WindowManagerConnection
- : public NON_EXPORTED_BASE(mus::WindowTreeDelegate),
+ : public NON_EXPORTED_BASE(mus::WindowTreeClientDelegate),
public ScreenMusDelegate {
public:
static void Create(shell::Connector* connector,
@@ -72,9 +72,9 @@ class VIEWS_MUS_EXPORT WindowManagerConnection
// Returns true if there is one or more pointer watchers for this client.
bool HasPointerWatcher();
- // mus::WindowTreeDelegate:
+ // mus::WindowTreeClientDelegate:
void OnEmbed(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;
// ScreenMusDelegate:
@@ -84,7 +84,7 @@ class VIEWS_MUS_EXPORT WindowManagerConnection
shell::Connector* connector_;
shell::Identity identity_;
std::unique_ptr<ScreenMus> screen_;
- std::unique_ptr<mus::WindowTreeConnection> window_tree_connection_;
+ std::unique_ptr<mus::WindowTreeClient> client_;
// Must be empty on destruction.
base::ObserverList<PointerWatcher, true> pointer_watchers_;
« no previous file with comments | « ui/views/mus/surface_binding.cc ('k') | ui/views/mus/window_manager_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698