| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // Returns the display id of the first display in the outupt list. | 115 // Returns the display id of the first display in the outupt list. |
| 116 int64 first_display_id() const { return first_display_id_; } | 116 int64 first_display_id() const { return first_display_id_; } |
| 117 | 117 |
| 118 // Initializes displays using command line flag. Returns false | 118 // Initializes displays using command line flag. Returns false |
| 119 // if no command line flag was provided. | 119 // if no command line flag was provided. |
| 120 bool InitFromCommandLine(); | 120 bool InitFromCommandLine(); |
| 121 | 121 |
| 122 // Initialize default display. | 122 // Initialize default display. |
| 123 void InitDefaultDisplay(); | 123 void InitDefaultDisplay(); |
| 124 | 124 |
| 125 // Initializes font related params that depends on display |
| 126 // configuration. |
| 127 void InitFontParams(); |
| 128 |
| 125 // True if the given |display| is currently connected. | 129 // True if the given |display| is currently connected. |
| 126 bool IsActiveDisplay(const gfx::Display& display) const; | 130 bool IsActiveDisplay(const gfx::Display& display) const; |
| 127 | 131 |
| 128 // True if there is an internal display. | 132 // True if there is an internal display. |
| 129 bool HasInternalDisplay() const; | 133 bool HasInternalDisplay() const; |
| 130 | 134 |
| 131 bool IsInternalDisplayId(int64 id) const; | 135 bool IsInternalDisplayId(int64 id) const; |
| 132 | 136 |
| 133 // Returns the display layout used for current displays. | 137 // Returns the display layout used for current displays. |
| 134 DisplayLayout GetCurrentDisplayLayout(); | 138 DisplayLayout GetCurrentDisplayLayout(); |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 SecondDisplayMode second_display_mode_; | 378 SecondDisplayMode second_display_mode_; |
| 375 int64 mirrored_display_id_; | 379 int64 mirrored_display_id_; |
| 376 gfx::Display non_desktop_display_; | 380 gfx::Display non_desktop_display_; |
| 377 | 381 |
| 378 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 382 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
| 379 }; | 383 }; |
| 380 | 384 |
| 381 } // namespace ash | 385 } // namespace ash |
| 382 | 386 |
| 383 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ | 387 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ |
| OLD | NEW |