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

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

Issue 1755223002: Adds WindowManagerManager to mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge and WindowManagerState Created 4 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 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_MANAGER_FACTORY_REGISTRY_H_
6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_FACTORY_REGISTRY_H_
7
8 #include <stdint.h>
9
10 #include <vector>
11
12 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "components/mus/public/interfaces/window_manager_factory.mojom.h"
15
16 namespace mus {
17 namespace ws {
18
19 class ConnectionManager;
20 class WindowManagerFactoryService;
21
22 // WindowManagerFactoryRegistry tracks the set of registered
23 // WindowManagerFactoryServices.
24 class WindowManagerFactoryRegistry {
25 public:
26 explicit WindowManagerFactoryRegistry(ConnectionManager* connection_manager);
27 ~WindowManagerFactoryRegistry();
28
29 void Register(
30 uint32_t user_id,
31 mojo::InterfaceRequest<mojom::WindowManagerFactoryService> request);
32
33 std::vector<WindowManagerFactoryService*> GetServices();
34
35 private:
36 friend class WindowManagerFactoryService;
37
38 void OnWindowManagerFactoryConnectionLost(
39 WindowManagerFactoryService* service);
40 void OnWindowManagerFactorySet();
41
42 ConnectionManager* connection_manager_;
43
44 std::vector<scoped_ptr<WindowManagerFactoryService>> services_;
45
46 DISALLOW_COPY_AND_ASSIGN(WindowManagerFactoryRegistry);
47 };
48
49 } // namespace ws
50 } // namespace mus
51
52 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_FACTORY_REGISTRY_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_manager_access_policy.cc ('k') | components/mus/ws/window_manager_factory_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698