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

Side by Side Diff: components/mus/ws/window_tree_host_factory.h

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « components/mus/ws/window_tree_factory.cc ('k') | components/mus/ws/window_tree_host_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_HOST_FACTORY_H_
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_HOST_FACTORY_H_
7
8 #include <stdint.h>
9
10 #include "components/mus/public/interfaces/window_tree_host.mojom.h"
11 #include "components/mus/ws/platform_display_init_params.h"
12 #include "components/mus/ws/user_id.h"
13 #include "mojo/public/cpp/bindings/binding_set.h"
14
15 namespace mus {
16 namespace ws {
17
18 class WindowServer;
19
20 class WindowTreeHostFactory : public mojom::WindowTreeHostFactory {
21 public:
22 WindowTreeHostFactory(
23 WindowServer* window_server,
24 const UserId& user_id,
25 const PlatformDisplayInitParams& platform_display_init_params);
26 ~WindowTreeHostFactory() override;
27
28 void AddBinding(mojom::WindowTreeHostFactoryRequest request);
29
30 private:
31 // mojom::WindowTreeHostFactory implementation.
32 void CreateWindowTreeHost(mojom::WindowTreeHostRequest host,
33 mojom::WindowTreeClientPtr tree_client) override;
34
35 WindowServer* window_server_;
36 const UserId user_id_;
37 const PlatformDisplayInitParams platform_display_init_params_;
38 mojo::BindingSet<mojom::WindowTreeHostFactory> bindings_;
39
40 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostFactory);
41 };
42
43 } // namespace ws
44 } // namespace mus
45
46 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_tree_factory.cc ('k') | components/mus/ws/window_tree_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698