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

Unified Diff: components/mus/ws/window_manager_factory_service.cc

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/window_manager_factory_service.h ('k') | components/mus/ws/window_manager_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_manager_factory_service.cc
diff --git a/components/mus/ws/window_manager_factory_service.cc b/components/mus/ws/window_manager_factory_service.cc
index 378e1a381245bdf244c0ab743b303c6f2d0ba24c..11ccc72b9f8afaf2b57759fdf390bce9aec6fdb4 100644
--- a/components/mus/ws/window_manager_factory_service.cc
+++ b/components/mus/ws/window_manager_factory_service.cc
@@ -11,14 +11,25 @@ namespace mus {
namespace ws {
WindowManagerFactoryService::WindowManagerFactoryService(
+ WindowManagerFactoryRegistry* registry,
+ uint32_t user_id,
mojo::InterfaceRequest<mojom::WindowManagerFactoryService> request)
- : binding_(this, std::move(request)) {}
+ : registry_(registry),
+ user_id_(user_id),
+ binding_(this, std::move(request)) {}
WindowManagerFactoryService::~WindowManagerFactoryService() {}
void WindowManagerFactoryService::SetWindowManagerFactory(
mojom::WindowManagerFactoryPtr factory) {
window_manager_factory_ = std::move(factory);
+ registry_->OnWindowManagerFactorySet();
+ binding_.set_connection_error_handler(base::Bind(
+ &WindowManagerFactoryService::OnConnectionLost, base::Unretained(this)));
+}
+
+void WindowManagerFactoryService::OnConnectionLost() {
+ registry_->OnWindowManagerFactoryConnectionLost(this);
}
} // namespace ws
« no previous file with comments | « components/mus/ws/window_manager_factory_service.h ('k') | components/mus/ws/window_manager_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698