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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 const gfx::Display& GetPrimaryDisplayCandidate() const; | 233 const gfx::Display& GetPrimaryDisplayCandidate() const; |
234 | 234 |
235 // Returns the logical number of displays. This returns 1 | 235 // Returns the logical number of displays. This returns 1 |
236 // when displays are mirrored. | 236 // when displays are mirrored. |
237 size_t GetNumDisplays() const; | 237 size_t GetNumDisplays() const; |
238 | 238 |
239 const DisplayList& active_display_list() const { | 239 const DisplayList& active_display_list() const { |
240 return active_display_list_; | 240 return active_display_list_; |
241 } | 241 } |
242 | 242 |
| 243 // Returns true if the display specified by |display_id| is currently |
| 244 // connected and active. (mirroring display isn't active, for example). |
| 245 bool IsActiveDisplayId(int64 display_id) const; |
| 246 |
243 // Returns the number of connected displays. This returns 2 | 247 // Returns the number of connected displays. This returns 2 |
244 // when displays are mirrored. | 248 // when displays are mirrored. |
245 size_t num_connected_displays() const { return num_connected_displays_; } | 249 size_t num_connected_displays() const { return num_connected_displays_; } |
246 | 250 |
247 // Returns the mirroring status. | 251 // Returns the mirroring status. |
248 bool IsInMirrorMode() const; | 252 bool IsInMirrorMode() const; |
249 int64 mirroring_display_id() const { return mirroring_display_id_; } | 253 int64 mirroring_display_id() const { return mirroring_display_id_; } |
250 const DisplayList& software_mirroring_display_list() const { | 254 const DisplayList& software_mirroring_display_list() const { |
251 return software_mirroring_display_list_; | 255 return software_mirroring_display_list_; |
252 } | 256 } |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 bool unified_desktop_enabled_; | 445 bool unified_desktop_enabled_; |
442 | 446 |
443 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; | 447 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; |
444 | 448 |
445 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 449 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
446 }; | 450 }; |
447 | 451 |
448 } // namespace ash | 452 } // namespace ash |
449 | 453 |
450 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ | 454 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ |
OLD | NEW |