| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_DISPLAY_MANAGER_H_ | 5 #ifndef SERVICES_UI_WS_DISPLAY_MANAGER_H_ |
| 6 #define SERVICES_UI_WS_DISPLAY_MANAGER_H_ | 6 #define SERVICES_UI_WS_DISPLAY_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 class CursorLocationManager; | 23 class CursorLocationManager; |
| 24 class Display; | 24 class Display; |
| 25 class ServerWindow; | 25 class ServerWindow; |
| 26 class UserDisplayManager; | 26 class UserDisplayManager; |
| 27 class UserIdTracker; | 27 class UserIdTracker; |
| 28 class WindowManagerDisplayRoot; | 28 class WindowManagerDisplayRoot; |
| 29 class WindowServer; | 29 class WindowServer; |
| 30 | 30 |
| 31 // DisplayManager manages the set of Displays. DisplayManager distinguishes | 31 // DisplayManager manages the set of Displays. DisplayManager distinguishes |
| 32 // between displays that do yet have an accelerated widget (pending), vs | 32 // between displays that do not yet have an accelerated widget (pending), vs |
| 33 // those that do. | 33 // those that do. |
| 34 class DisplayManager : public UserIdTrackerObserver, | 34 class DisplayManager : public UserIdTrackerObserver, |
| 35 public display::ScreenManagerDelegate { | 35 public display::ScreenManagerDelegate { |
| 36 public: | 36 public: |
| 37 DisplayManager(WindowServer* window_server, UserIdTracker* user_id_tracker); | 37 DisplayManager(WindowServer* window_server, UserIdTracker* user_id_tracker); |
| 38 ~DisplayManager() override; | 38 ~DisplayManager() override; |
| 39 | 39 |
| 40 // Returns the UserDisplayManager for |user_id|. DisplayManager owns the | 40 // Returns the UserDisplayManager for |user_id|. DisplayManager owns the |
| 41 // return value. | 41 // return value. |
| 42 UserDisplayManager* GetUserDisplayManager(const UserId& user_id); | 42 UserDisplayManager* GetUserDisplayManager(const UserId& user_id); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // ID to use for next root node. | 117 // ID to use for next root node. |
| 118 ClientSpecificId next_root_id_; | 118 ClientSpecificId next_root_id_; |
| 119 | 119 |
| 120 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 120 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace ws | 123 } // namespace ws |
| 124 } // namespace ui | 124 } // namespace ui |
| 125 | 125 |
| 126 #endif // SERVICES_UI_WS_DISPLAY_MANAGER_H_ | 126 #endif // SERVICES_UI_WS_DISPLAY_MANAGER_H_ |
| OLD | NEW |