Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ASH_DISPLAY_DISPLAY_MANAGER_H_ | 5 #ifndef ASH_DISPLAY_DISPLAY_MANAGER_H_ |
| 6 #define ASH_DISPLAY_DISPLAY_MANAGER_H_ | 6 #define ASH_DISPLAY_DISPLAY_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 218 void SetColorCalibrationProfile(int64_t display_id, | 218 void SetColorCalibrationProfile(int64_t display_id, |
| 219 ui::ColorCalibrationProfile profile); | 219 ui::ColorCalibrationProfile profile); |
| 220 | 220 |
| 221 // Called when display configuration has changed. The new display | 221 // Called when display configuration has changed. The new display |
| 222 // configurations is passed as a vector of Display object, which | 222 // configurations is passed as a vector of Display object, which |
| 223 // contains each display's new infomration. | 223 // contains each display's new infomration. |
| 224 void OnNativeDisplaysChanged( | 224 void OnNativeDisplaysChanged( |
| 225 const std::vector<DisplayInfo>& display_info_list); | 225 const std::vector<DisplayInfo>& display_info_list); |
| 226 | 226 |
| 227 // Updates the internal display data and notifies observers about the changes. | 227 // Updates the internal display data and notifies observers about the changes. |
| 228 void UpdateDisplays(const std::vector<DisplayInfo>& display_info_list); | 228 void UpdateDisplaysTo(const std::vector<DisplayInfo>& display_info_list); |
|
oshima
2016/01/25 23:47:36
This is a bit misleading as the configured display
jdufault
2016/01/26 18:37:03
Done.
| |
| 229 | 229 |
| 230 // Updates current displays using current |display_info_|. | 230 // Updates current displays using current |display_info_|. |
| 231 void UpdateDisplays(); | 231 void UpdateDisplays(); |
| 232 | 232 |
| 233 // Returns the display at |index|. The display at 0 is | 233 // Returns the display at |index|. The display at 0 is |
| 234 // no longer considered "primary". | 234 // no longer considered "primary". |
| 235 const gfx::Display& GetDisplayAt(size_t index) const; | 235 const gfx::Display& GetDisplayAt(size_t index) const; |
| 236 | 236 |
| 237 const gfx::Display& GetPrimaryDisplayCandidate() const; | 237 const gfx::Display& GetPrimaryDisplayCandidate() const; |
| 238 | 238 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 448 bool unified_desktop_enabled_; | 448 bool unified_desktop_enabled_; |
| 449 | 449 |
| 450 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; | 450 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; |
| 451 | 451 |
| 452 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 452 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
| 453 }; | 453 }; |
| 454 | 454 |
| 455 } // namespace ash | 455 } // namespace ash |
| 456 | 456 |
| 457 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ | 457 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ |
| OLD | NEW |