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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // Initialize default display. | 128 // Initialize default display. |
129 void InitDefaultDisplay(); | 129 void InitDefaultDisplay(); |
130 | 130 |
131 // Initializes font related params that depends on display | 131 // Initializes font related params that depends on display |
132 // configuration. | 132 // configuration. |
133 void RefreshFontParams(); | 133 void RefreshFontParams(); |
134 | 134 |
135 // Returns the display layout used for current displays. | 135 // Returns the display layout used for current displays. |
136 DisplayLayout GetCurrentDisplayLayout(); | 136 DisplayLayout GetCurrentDisplayLayout(); |
137 | 137 |
138 // Returns the current display pair. | 138 // Returns the current display list. |
139 DisplayIdPair GetCurrentDisplayIdPair() const; | 139 DisplayIdList GetCurrentDisplayIdList() const; |
140 | 140 |
141 // Sets the layout for the current display pair. The |layout| specifies | 141 // Sets the layout for the current display pair. The |layout| specifies |
142 // the locaion of the secondary display relative to the primary. | 142 // the locaion of the secondary display relative to the primary. |
143 void SetLayoutForCurrentDisplays( | 143 void SetLayoutForCurrentDisplays( |
144 const DisplayLayout& layout_relative_to_primary); | 144 const DisplayLayout& layout_relative_to_primary); |
145 | 145 |
146 // Returns display for given |id|; | 146 // Returns display for given |id|; |
147 const gfx::Display& GetDisplayForId(int64_t id) const; | 147 const gfx::Display& GetDisplayForId(int64_t id) const; |
148 | 148 |
149 // Finds the display that contains |point| in screeen coordinates. | 149 // Finds the display that contains |point| in screeen coordinates. |
(...skipping 298 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 |