| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // Sets the UI scale for the |display_id|. Returns false if the |
| 166 // display_id is not an internal display. | 166 // display_id is not an internal display. |
| 167 bool SetDisplayUIScale(int64_t display_id, float scale); | 167 bool SetDisplayUIScale(int64_t display_id, float scale); |
| 168 | 168 |
| 169 // Resets the UI scale of the display with |display_id| to the one defined in |
| 170 // the default mode. |
| 171 bool ResetDisplayToDefaultMode(int64_t display_id); |
| 172 |
| 169 // Sets the external display's configuration, including resolution change, | 173 // Sets the external display's configuration, including resolution change, |
| 170 // ui-scale change, and device scale factor change. Returns true if it changes | 174 // 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 | 175 // the display resolution so that the caller needs to show a notification in |
| 172 // case the new resolution actually doesn't work. | 176 // case the new resolution actually doesn't work. |
| 173 bool SetDisplayMode( | 177 bool SetDisplayMode( |
| 174 int64_t display_id, | 178 int64_t display_id, |
| 175 const scoped_refptr<display::ManagedDisplayMode>& display_mode); | 179 const scoped_refptr<display::ManagedDisplayMode>& display_mode); |
| 176 | 180 |
| 177 // Register per display properties. |overscan_insets| is NULL if | 181 // Register per display properties. |overscan_insets| is NULL if |
| 178 // the display has no custom overscan insets. | 182 // the display has no custom overscan insets. |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 base::ObserverList<display::DisplayObserver> observers_; | 481 base::ObserverList<display::DisplayObserver> observers_; |
| 478 | 482 |
| 479 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; | 483 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; |
| 480 | 484 |
| 481 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 485 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
| 482 }; | 486 }; |
| 483 | 487 |
| 484 } // namespace ash | 488 } // namespace ash |
| 485 | 489 |
| 486 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ | 490 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ |
| OLD | NEW |