| 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 | 115 |
| 116 // Initializes displays using command line flag. Returns false | 116 // Initializes displays using command line flag. Returns false |
| 117 // if no command line flag was provided. | 117 // if no command line flag was provided. |
| 118 bool InitFromCommandLine(); | 118 bool InitFromCommandLine(); |
| 119 | 119 |
| 120 // Initialize default display. | 120 // Initialize default display. |
| 121 void InitDefaultDisplay(); | 121 void InitDefaultDisplay(); |
| 122 | 122 |
| 123 // Initializes font related params that depends on display | 123 // Initializes font related params that depends on display |
| 124 // configuration. | 124 // configuration. |
| 125 void InitFontParams(); | 125 void RefreshFontParams(); |
| 126 | 126 |
| 127 // True if the given |display| is currently connected. | 127 // True if the given |display| is currently connected. |
| 128 bool IsActiveDisplay(const gfx::Display& display) const; | 128 bool IsActiveDisplay(const gfx::Display& display) const; |
| 129 | 129 |
| 130 // True if there is an internal display. | 130 // True if there is an internal display. |
| 131 bool HasInternalDisplay() const; | 131 bool HasInternalDisplay() const; |
| 132 | 132 |
| 133 bool IsInternalDisplayId(int64 id) const; | 133 bool IsInternalDisplayId(int64 id) const; |
| 134 | 134 |
| 135 // Returns the display layout used for current displays. | 135 // Returns the display layout used for current displays. |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 gfx::Display::Rotation registered_internal_display_rotation_; | 403 gfx::Display::Rotation registered_internal_display_rotation_; |
| 404 | 404 |
| 405 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; | 405 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; |
| 406 | 406 |
| 407 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 407 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
| 408 }; | 408 }; |
| 409 | 409 |
| 410 } // namespace ash | 410 } // namespace ash |
| 411 | 411 |
| 412 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ | 412 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ |
| OLD | NEW |