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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // that the insets size should be specified in DIP size. It also triggers the | 155 // that the insets size should be specified in DIP size. It also triggers the |
156 // display's bounds change. | 156 // display's bounds change. |
157 void SetOverscanInsets(int64_t display_id, const gfx::Insets& insets_in_dip); | 157 void SetOverscanInsets(int64_t display_id, const gfx::Insets& insets_in_dip); |
158 | 158 |
159 // Sets the display's rotation for the given |source|. The new |rotation| will | 159 // Sets the display's rotation for the given |source|. The new |rotation| will |
160 // also become active. | 160 // also become active. |
161 void SetDisplayRotation(int64_t display_id, | 161 void SetDisplayRotation(int64_t display_id, |
162 display::Display::Rotation rotation, | 162 display::Display::Rotation rotation, |
163 display::Display::RotationSource source); | 163 display::Display::RotationSource source); |
164 | 164 |
165 // Sets the UI scale for the |display_id|. Returns false if the | 165 // Resets the UI scale of the display with |display_id| to the one defined in |
166 // display_id is not an internal display. | 166 // the default mode. |
167 bool SetDisplayUIScale(int64_t display_id, float scale); | 167 bool ResetDisplayToDefaultMode(int64_t display_id); |
168 | 168 |
169 // Sets the external display's configuration, including resolution change, | 169 // Sets the external display's configuration, including resolution change, |
170 // ui-scale change, and device scale factor change. Returns true if it changes | 170 // ui-scale change, and device scale factor change. Returns true if it changes |
171 // the display resolution so that the caller needs to show a notification in | 171 // the display resolution so that the caller needs to show a notification in |
172 // case the new resolution actually doesn't work. | 172 // case the new resolution actually doesn't work. |
173 bool SetDisplayMode( | 173 bool SetDisplayMode( |
174 int64_t display_id, | 174 int64_t display_id, |
175 const scoped_refptr<display::ManagedDisplayMode>& display_mode); | 175 const scoped_refptr<display::ManagedDisplayMode>& display_mode); |
176 | 176 |
177 // Register per display properties. |overscan_insets| is NULL if | 177 // Register per display properties. |overscan_insets| is NULL if |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 base::ObserverList<display::DisplayObserver> observers_; | 477 base::ObserverList<display::DisplayObserver> observers_; |
478 | 478 |
479 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; | 479 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; |
480 | 480 |
481 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 481 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
482 }; | 482 }; |
483 | 483 |
484 } // namespace ash | 484 } // namespace ash |
485 | 485 |
486 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ | 486 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ |
OLD | NEW |