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

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

Issue 1755223002: Adds WindowManagerManager to mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge and WindowManagerState 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/connection_manager.cc ('k') | components/mus/ws/window_manager_access_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/connection_manager_delegate.h
diff --git a/components/mus/ws/connection_manager_delegate.h b/components/mus/ws/connection_manager_delegate.h
index 7e3d5293925c43ccafae1dbf9b2f6019b806defe..7b9c31952cb9cb30f27cfbee6ee4c732725c15c7 100644
--- a/components/mus/ws/connection_manager_delegate.h
+++ b/components/mus/ws/connection_manager_delegate.h
@@ -15,11 +15,18 @@
namespace mus {
+namespace mojom {
+class Display;
+class WindowManagerFactory;
+class WindowTree;
+}
+
namespace ws {
class ClientConnection;
class ConnectionManager;
class ServerWindow;
+class WindowTreeHostImpl;
class ConnectionManagerDelegate {
public:
@@ -31,17 +38,27 @@ class ConnectionManagerDelegate {
// ConnectionManager.
virtual ClientConnection* CreateClientConnectionForEmbedAtWindow(
ConnectionManager* connection_manager,
- mojo::InterfaceRequest<mojom::WindowTree> tree_request,
+ mojom::WindowTreeRequest tree_request,
ServerWindow* root,
uint32_t policy_bitmask,
mojom::WindowTreeClientPtr client) = 0;
+ virtual ClientConnection* CreateClientConnectionForWindowManager(
+ WindowTreeHostImpl* tree_host,
+ ServerWindow* window,
+ const mojom::Display& display,
+ uint32_t user_id,
+ mojom::WindowManagerFactory* factory) = 0;
+
+ // Called if no WindowTreeHosts have been created, but a
+ // WindowManagerFactory has been set.
+ virtual void CreateDefaultWindowTreeHosts() = 0;
+
protected:
virtual ~ConnectionManagerDelegate() {}
};
} // namespace ws
-
} // namespace mus
#endif // COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_
« no previous file with comments | « components/mus/ws/connection_manager.cc ('k') | components/mus/ws/window_manager_access_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698