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

Side by Side Diff: components/mus/ws/window_tree_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
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_FACTORY_H_
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "components/mus/public/interfaces/window_tree.mojom.h"
10 #include "components/mus/ws/user_id.h"
11 #include "mojo/public/cpp/bindings/strong_binding.h"
12
13 namespace mus {
14 namespace ws {
15
16 class WindowServer;
17
18 class WindowTreeFactory : public mus::mojom::WindowTreeFactory {
19 public:
20 WindowTreeFactory(WindowServer* window_server,
21 const UserId& user_id,
22 const std::string& client_name,
23 mojom::WindowTreeFactoryRequest request);
24 private:
25 ~WindowTreeFactory() override;
26
27 // mus::mojom::WindowTreeFactory:
28 void CreateWindowTree(mojo::InterfaceRequest<mojom::WindowTree> tree_request,
29 mojom::WindowTreeClientPtr client) override;
30
31 WindowServer* window_server_;
32 const UserId user_id_;
33 const std::string client_name_;
34 mojo::StrongBinding<mus::mojom::WindowTreeFactory> binding_;
35
36 DISALLOW_COPY_AND_ASSIGN(WindowTreeFactory);
37 };
38
39 } // namespace ws
40 } // namespace mus
41
42 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_FACTORY_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_tree_client_unittest.cc ('k') | components/mus/ws/window_tree_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698