| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 void AddDisplay(Display* display); | 49 void AddDisplay(Display* display); |
| 50 // Called when the window manager explicitly adds a new display. | 50 // Called when the window manager explicitly adds a new display. |
| 51 void AddDisplayForWindowManager(const display::Display& display, | 51 void AddDisplayForWindowManager(const display::Display& display, |
| 52 const display::ViewportMetrics& metrics); | 52 const display::ViewportMetrics& metrics); |
| 53 void DestroyDisplay(Display* display); | 53 void DestroyDisplay(Display* display); |
| 54 void DestroyAllDisplays(); | 54 void DestroyAllDisplays(); |
| 55 const std::set<Display*>& displays() { return displays_; } | 55 const std::set<Display*>& displays() { return displays_; } |
| 56 std::set<const Display*> displays() const; | 56 std::set<const Display*> displays() const; |
| 57 | 57 |
| 58 // Notifies when something about the Display changes. | 58 // Notifies when something about the Display changes. |
| 59 void OnDisplayUpdate(const display::Display& display); | 59 void OnDisplayUpdated(const display::Display& display); |
| 60 | 60 |
| 61 // Returns the Display that contains |window|, or null if |window| is not | 61 // Returns the Display that contains |window|, or null if |window| is not |
| 62 // attached to a display. | 62 // attached to a display. |
| 63 Display* GetDisplayContaining(const ServerWindow* window); | 63 Display* GetDisplayContaining(const ServerWindow* window); |
| 64 const Display* GetDisplayContaining(const ServerWindow* window) const; | 64 const Display* GetDisplayContaining(const ServerWindow* window) const; |
| 65 | 65 |
| 66 // Returns the display with the specified display id, or null if there is no | 66 // Returns the display with the specified display id, or null if there is no |
| 67 // display with that id. | 67 // display with that id. |
| 68 Display* GetDisplayById(int64_t display_id); | 68 Display* GetDisplayById(int64_t display_id); |
| 69 | 69 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // ID to use for next root node. | 120 // ID to use for next root node. |
| 121 ClientSpecificId next_root_id_; | 121 ClientSpecificId next_root_id_; |
| 122 | 122 |
| 123 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 123 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace ws | 126 } // namespace ws |
| 127 } // namespace ui | 127 } // namespace ui |
| 128 | 128 |
| 129 #endif // SERVICES_UI_WS_DISPLAY_MANAGER_H_ | 129 #endif // SERVICES_UI_WS_DISPLAY_MANAGER_H_ |
| OLD | NEW |