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

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

Issue 2310133002: Add mojom::DisplayController. (Closed)
Patch Set: Add missing dep. Created 4 years, 3 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
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // Called when the AcceleratedWidget is available for |display|. 76 // Called when the AcceleratedWidget is available for |display|.
77 void OnDisplayAcceleratedWidgetAvailable(Display* display); 77 void OnDisplayAcceleratedWidgetAvailable(Display* display);
78 78
79 private: 79 private:
80 // UserIdTrackerObserver: 80 // UserIdTrackerObserver:
81 void OnActiveUserIdChanged(const UserId& previously_active_id, 81 void OnActiveUserIdChanged(const UserId& previously_active_id,
82 const UserId& active_id) override; 82 const UserId& active_id) override;
83 83
84 // display::PlatformScreenDelegate: 84 // display::PlatformScreenDelegate:
85 void OnDisplayAdded(display::PlatformScreen* platform_screen_, 85 void OnDisplayAdded(int64_t id, const gfx::Rect& bounds) override;
86 int64_t id,
87 const gfx::Rect& bounds) override;
88 void OnDisplayRemoved(int64_t id) override; 86 void OnDisplayRemoved(int64_t id) override;
89 void OnDisplayModified(int64_t id, const gfx::Rect& bounds) override; 87 void OnDisplayModified(int64_t id, const gfx::Rect& bounds) override;
90 88
91 WindowServer* window_server_; 89 WindowServer* window_server_;
92 UserIdTracker* user_id_tracker_; 90 UserIdTracker* user_id_tracker_;
93 91
94 // Displays are initially added to |pending_displays_|. When the display is 92 // Displays are initially added to |pending_displays_|. When the display is
95 // initialized it is moved to |displays_|. WindowServer owns the Displays. 93 // initialized it is moved to |displays_|. WindowServer owns the Displays.
96 std::set<Display*> pending_displays_; 94 std::set<Display*> pending_displays_;
97 std::set<Display*> displays_; 95 std::set<Display*> displays_;
98 96
99 std::map<UserId, std::unique_ptr<UserDisplayManager>> user_display_managers_; 97 std::map<UserId, std::unique_ptr<UserDisplayManager>> user_display_managers_;
100 98
101 // ID to use for next root node. 99 // ID to use for next root node.
102 ClientSpecificId next_root_id_; 100 ClientSpecificId next_root_id_;
103 101
104 DISALLOW_COPY_AND_ASSIGN(DisplayManager); 102 DISALLOW_COPY_AND_ASSIGN(DisplayManager);
105 }; 103 };
106 104
107 } // namespace ws 105 } // namespace ws
108 } // namespace ui 106 } // namespace ui
109 107
110 #endif // SERVICES_UI_WS_DISPLAY_MANAGER_H_ 108 #endif // SERVICES_UI_WS_DISPLAY_MANAGER_H_
OLDNEW
« no previous file with comments | « services/ui/public/interfaces/display/display_controller.mojom ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698