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

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

Issue 2072343002: Changes how window manager obtains WindowTree from mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include Created 4 years, 6 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
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
deleted file mode 100644
index 9aebb5ac83ad08d38ab79013e11e36194a62f5da..0000000000000000000000000000000000000000
--- a/components/mus/ws/window_manager_factory_service.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/mus/ws/window_manager_factory_service.h"
-
-#include "base/bind.h"
-#include "components/mus/ws/window_manager_factory_registry.h"
-#include "components/mus/ws/window_tree.h"
-
-namespace mus {
-namespace ws {
-
-WindowManagerFactoryService::WindowManagerFactoryService(
- WindowManagerFactoryRegistry* registry,
- const UserId& user_id,
- mojo::InterfaceRequest<mojom::WindowManagerFactoryService> request)
- : registry_(registry),
- user_id_(user_id),
- binding_(this, std::move(request)),
- window_manager_factory_(nullptr) {}
-
-WindowManagerFactoryService::~WindowManagerFactoryService() {}
-
-void WindowManagerFactoryService::SetWindowManagerFactory(
- mojom::WindowManagerFactoryPtr factory) {
- window_manager_factory_ptr_ = std::move(factory);
- window_manager_factory_ptr_.set_connection_error_handler(base::Bind(
- &WindowManagerFactoryService::OnConnectionLost, base::Unretained(this)));
- SetWindowManagerFactoryImpl(window_manager_factory_ptr_.get());
-}
-
-WindowManagerFactoryService::WindowManagerFactoryService(
- WindowManagerFactoryRegistry* registry,
- const UserId& user_id)
- : registry_(registry),
- user_id_(user_id),
- binding_(this),
- window_manager_factory_(nullptr) {}
-
-void WindowManagerFactoryService::SetWindowManagerFactoryImpl(
- mojom::WindowManagerFactory* factory) {
- DCHECK(!window_manager_factory_);
- window_manager_factory_ = factory;
- registry_->OnWindowManagerFactorySet(this);
-}
-
-void WindowManagerFactoryService::OnConnectionLost() {
- registry_->OnWindowManagerFactoryConnectionLost(this);
-}
-
-} // namespace ws
-} // namespace mus
« no previous file with comments | « components/mus/ws/window_manager_factory_service.h ('k') | components/mus/ws/window_manager_window_tree_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698