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

Unified Diff: services/ui/ws/window_tree_host_factory_registrar.h

Issue 2712203002: c++ / mojo changes for 'external window mode'
Patch Set: . Created 3 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
Index: services/ui/ws/window_tree_host_factory_registrar.h
diff --git a/services/ui/ws/window_tree_host_factory_registrar.h b/services/ui/ws/window_tree_host_factory_registrar.h
new file mode 100644
index 0000000000000000000000000000000000000000..ef41af66d37a739fe3ca58fe53f3d0586c1025d4
--- /dev/null
+++ b/services/ui/ws/window_tree_host_factory_registrar.h
@@ -0,0 +1,39 @@
+// Copyright 2017 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.
+
+#ifndef SERVICES_UI_WS_WINDOW_TREE_HOST_FACTORY_REGISTRAR_H_
+#define SERVICES_UI_WS_WINDOW_TREE_HOST_FACTORY_REGISTRAR_H_
+
+#include "services/ui/public/interfaces/window_tree_host.mojom.h"
+#include "services/ui/ws/user_id.h"
+
+namespace ui {
+namespace ws {
+
+class WindowServer;
+
+class WindowTreeHostFactoryRegistrar
+ : public mojom::WindowTreeHostFactoryRegistrar {
+ public:
+ WindowTreeHostFactoryRegistrar(WindowServer* window_server,
+ const UserId& user_id);
+ ~WindowTreeHostFactoryRegistrar() override;
+
+ const UserId& user_id() const { return user_id_; }
+
+ private:
+ void Register(mojom::WindowTreeHostFactoryRequest,
+ mojom::WindowTreeRequest tree_request,
+ mojom::WindowTreeClientPtr tree_client) override;
+
+ WindowServer* window_server_;
+ const UserId user_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(WindowTreeHostFactoryRegistrar);
+};
+
+} // namespace ws
+} // namespace ui
+
+#endif // SERVICES_UI_WS_WINDOW_TREE_HOST_FACTORY_REGISTRAR_H_

Powered by Google App Engine
This is Rietveld 408576698