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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 return !displays_.empty() || !pending_displays_.empty(); | 74 return !displays_.empty() || !pending_displays_.empty(); |
75 } | 75 } |
76 | 76 |
77 // Returns the id for the next root window (both for the root of a Display | 77 // Returns the id for the next root window (both for the root of a Display |
78 // as well as the root of WindowManagers). | 78 // as well as the root of WindowManagers). |
79 WindowId GetAndAdvanceNextRootId(); | 79 WindowId GetAndAdvanceNextRootId(); |
80 | 80 |
81 // Called when the AcceleratedWidget is available for |display|. | 81 // Called when the AcceleratedWidget is available for |display|. |
82 void OnDisplayAcceleratedWidgetAvailable(Display* display); | 82 void OnDisplayAcceleratedWidgetAvailable(Display* display); |
83 | 83 |
| 84 // Switch the high contrast mode of all Displays to |enabled|. |
| 85 void SetHighContrastMode(bool enabled); |
| 86 |
84 private: | 87 private: |
85 // UserIdTrackerObserver: | 88 // UserIdTrackerObserver: |
86 void OnActiveUserIdChanged(const UserId& previously_active_id, | 89 void OnActiveUserIdChanged(const UserId& previously_active_id, |
87 const UserId& active_id) override; | 90 const UserId& active_id) override; |
88 | 91 |
89 // display::ScreenManagerDelegate: | 92 // display::ScreenManagerDelegate: |
90 void OnDisplayAdded(const display::Display& display, | 93 void OnDisplayAdded(const display::Display& display, |
91 const display::ViewportMetrics& metrics) override; | 94 const display::ViewportMetrics& metrics) override; |
92 void OnDisplayRemoved(int64_t id) override; | 95 void OnDisplayRemoved(int64_t id) override; |
93 void OnDisplayModified(const display::Display& display, | 96 void OnDisplayModified(const display::Display& display, |
(...skipping 16 matching lines...) Expand all Loading... |
110 // ID to use for next root node. | 113 // ID to use for next root node. |
111 ClientSpecificId next_root_id_; | 114 ClientSpecificId next_root_id_; |
112 | 115 |
113 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 116 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
114 }; | 117 }; |
115 | 118 |
116 } // namespace ws | 119 } // namespace ws |
117 } // namespace ui | 120 } // namespace ui |
118 | 121 |
119 #endif // SERVICES_UI_WS_DISPLAY_MANAGER_H_ | 122 #endif // SERVICES_UI_WS_DISPLAY_MANAGER_H_ |
OLD | NEW |