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

Side by Side Diff: services/ui/ws/window_tree_host_factory_registrar.h

Issue 2712203002: c++ / mojo changes for 'external window mode'
Patch Set: rebased Created 3 years, 9 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 2017 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 SERVICES_UI_WS_WINDOW_TREE_HOST_FACTORY_REGISTRAR_H_
6 #define SERVICES_UI_WS_WINDOW_TREE_HOST_FACTORY_REGISTRAR_H_
7
8 #include "services/ui/public/interfaces/window_tree_host.mojom.h"
9 #include "services/ui/ws/user_id.h"
10
11 namespace ui {
12 namespace ws {
13
14 class WindowServer;
15
16 class WindowTreeHostFactoryRegistrar
17 : public mojom::WindowTreeHostFactoryRegistrar {
18 public:
19 WindowTreeHostFactoryRegistrar(WindowServer* window_server,
20 const UserId& user_id);
21 ~WindowTreeHostFactoryRegistrar() override;
22
23 const UserId& user_id() const { return user_id_; }
24
25 private:
26 void Register(mojom::WindowTreeHostFactoryRequest,
27 mojom::WindowTreeRequest tree_request,
28 mojom::WindowTreeClientPtr tree_client) override;
29
30 WindowServer* window_server_;
31 const UserId user_id_;
32
33 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostFactoryRegistrar);
34 };
35
36 } // namespace ws
37 } // namespace ui
38
39 #endif // SERVICES_UI_WS_WINDOW_TREE_HOST_FACTORY_REGISTRAR_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_tree_host_factory.cc ('k') | services/ui/ws/window_tree_host_factory_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698