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

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

Issue 2804403002: Adds ability for WindowManager to create display roots (Closed)
Patch Set: cleanup Created 3 years, 8 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
« no previous file with comments | « services/ui/ws/display_binding.cc ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « services/ui/ws/display_binding.cc ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698