OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_H_ | 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_H_ |
6 #define SERVICES_UI_WS_WINDOW_SERVER_H_ | 6 #define SERVICES_UI_WS_WINDOW_SERVER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "services/ui/ws/window_manager_window_tree_factory_set.h" | 29 #include "services/ui/ws/window_manager_window_tree_factory_set.h" |
30 | 30 |
31 namespace ui { | 31 namespace ui { |
32 namespace ws { | 32 namespace ws { |
33 | 33 |
34 class AccessPolicy; | 34 class AccessPolicy; |
35 class Display; | 35 class Display; |
36 class DisplayManager; | 36 class DisplayManager; |
37 class GpuHost; | 37 class GpuHost; |
38 class ServerWindow; | 38 class ServerWindow; |
| 39 class ThreadedImageCursorsFactory; |
39 class UserActivityMonitor; | 40 class UserActivityMonitor; |
40 class WindowManagerState; | 41 class WindowManagerState; |
41 class WindowServerDelegate; | 42 class WindowServerDelegate; |
42 class WindowTree; | 43 class WindowTree; |
43 class WindowTreeBinding; | 44 class WindowTreeBinding; |
44 | 45 |
45 enum class DisplayCreationConfig; | 46 enum class DisplayCreationConfig; |
46 | 47 |
47 // WindowServer manages the set of clients of the window server (all the | 48 // WindowServer manages the set of clients of the window server (all the |
48 // WindowTrees) as well as providing the root of the hierarchy. | 49 // WindowTrees) as well as providing the root of the hierarchy. |
(...skipping 25 matching lines...) Expand all Loading... |
74 } | 75 } |
75 | 76 |
76 // Pass the FrameSinkManager to WindowServer. This is needed because | 77 // Pass the FrameSinkManager to WindowServer. This is needed because |
77 // FrameSinkManagerClientBinding (the FrameSinkManager implementation being | 78 // FrameSinkManagerClientBinding (the FrameSinkManager implementation being |
78 // used) requires WindowServer's GpuHost to create. | 79 // used) requires WindowServer's GpuHost to create. |
79 void SetFrameSinkManager( | 80 void SetFrameSinkManager( |
80 std::unique_ptr<cc::mojom::FrameSinkManager> frame_sink_manager); | 81 std::unique_ptr<cc::mojom::FrameSinkManager> frame_sink_manager); |
81 | 82 |
82 void SetGpuHost(std::unique_ptr<GpuHost> gpu_host); | 83 void SetGpuHost(std::unique_ptr<GpuHost> gpu_host); |
83 | 84 |
| 85 ThreadedImageCursorsFactory* GetThreadedImageCursorsFactory(); |
| 86 |
84 // Creates a new ServerWindow. The return value is owned by the caller, but | 87 // Creates a new ServerWindow. The return value is owned by the caller, but |
85 // must be destroyed before WindowServer. | 88 // must be destroyed before WindowServer. |
86 ServerWindow* CreateServerWindow( | 89 ServerWindow* CreateServerWindow( |
87 const WindowId& id, | 90 const WindowId& id, |
88 const std::map<std::string, std::vector<uint8_t>>& properties); | 91 const std::map<std::string, std::vector<uint8_t>>& properties); |
89 | 92 |
90 // Returns the id for the next WindowTree. | 93 // Returns the id for the next WindowTree. |
91 ClientSpecificId GetAndAdvanceNextClientId(); | 94 ClientSpecificId GetAndAdvanceNextClientId(); |
92 | 95 |
93 // See description of WindowTree::Embed() for details. This assumes | 96 // See description of WindowTree::Embed() for details. This assumes |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 | 413 |
411 DisplayCreationConfig display_creation_config_; | 414 DisplayCreationConfig display_creation_config_; |
412 | 415 |
413 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 416 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
414 }; | 417 }; |
415 | 418 |
416 } // namespace ws | 419 } // namespace ws |
417 } // namespace ui | 420 } // namespace ui |
418 | 421 |
419 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ | 422 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ |
OLD | NEW |