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

Unified Diff: components/mus/ws/window_tree_host_impl.h

Issue 1750143002: Changes ownership of WindowTreeHostConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 10 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/ws/window_tree_host_delegate.h ('k') | components/mus/ws/window_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree_host_impl.h
diff --git a/components/mus/ws/window_tree_host_impl.h b/components/mus/ws/window_tree_host_impl.h
index a1f93d195ab763f42570a5e76c943d34a43ef800..34bad0c45299f39e5284f195b3451069e547c5ce 100644
--- a/components/mus/ws/window_tree_host_impl.h
+++ b/components/mus/ws/window_tree_host_impl.h
@@ -29,7 +29,7 @@ namespace ws {
class ConnectionManager;
class FocusController;
-class WindowTreeHostDelegate;
+class WindowTreeHostConnection;
class WindowTreeImpl;
// WindowTreeHostImpl is an implementation of the WindowTreeHost interface.
@@ -54,7 +54,7 @@ class WindowTreeHostImpl : public DisplayManagerDelegate,
~WindowTreeHostImpl() override;
// Initializes state that depends on the existence of a WindowTreeHostImpl.
- void Init(WindowTreeHostDelegate* delegate);
+ void Init(scoped_ptr<WindowTreeHostConnection> connection);
uint32_t id() const { return id_; }
@@ -156,6 +156,9 @@ class WindowTreeHostImpl : public DisplayManagerDelegate,
scoped_ptr<ProcessedEventTarget> processed_target;
};
+ // Inits the necessary state once the display is ready.
+ void CallOnDisplayInitializedIfNecessary();
+
void OnEventAckTimeout();
// Schedules an event to be processed later.
@@ -210,7 +213,8 @@ class WindowTreeHostImpl : public DisplayManagerDelegate,
void OnWindowDestroyed(ServerWindow* window) override;
const uint32_t id_;
- WindowTreeHostDelegate* delegate_;
+ scoped_ptr<WindowTreeHostConnection> window_tree_host_connection_;
+ WindowTreeImpl* window_tree_ = nullptr;
ConnectionManager* const connection_manager_;
EventDispatcher event_dispatcher_;
scoped_ptr<ServerWindow> root_;
« no previous file with comments | « components/mus/ws/window_tree_host_delegate.h ('k') | components/mus/ws/window_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698