| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 const gfx::Point& point_in_screen) const; | 134 const gfx::Point& point_in_screen) const; |
| 135 | 135 |
| 136 // Sets the work area's |insets| to the display given by |display_id|. | 136 // Sets the work area's |insets| to the display given by |display_id|. |
| 137 bool UpdateWorkAreaOfDisplay(int64 display_id, const gfx::Insets& insets); | 137 bool UpdateWorkAreaOfDisplay(int64 display_id, const gfx::Insets& insets); |
| 138 | 138 |
| 139 // Registers the overscan insets for the display of the specified ID. Note | 139 // Registers the overscan insets for the display of the specified ID. Note |
| 140 // that the insets size should be specified in DIP size. It also triggers the | 140 // that the insets size should be specified in DIP size. It also triggers the |
| 141 // display's bounds change. | 141 // display's bounds change. |
| 142 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip); | 142 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip); |
| 143 | 143 |
| 144 // Sets the display's rotation. | 144 // Sets the display's rotation for the given |source|. The new |rotation| will |
| 145 void SetDisplayRotation(int64 display_id, gfx::Display::Rotation rotation); | 145 // also become active. |
| 146 void SetDisplayRotation(int64 display_id, |
| 147 gfx::Display::Rotation rotation, |
| 148 gfx::Display::RotationSource source); |
| 146 | 149 |
| 147 // Sets the display's ui scale. Returns true if it's successful, or | 150 // Sets the display's ui scale. Returns true if it's successful, or |
| 148 // false otherwise. TODO(mukai): remove this and merge into | 151 // false otherwise. TODO(mukai): remove this and merge into |
| 149 // SetDisplayMode. | 152 // SetDisplayMode. |
| 150 bool SetDisplayUIScale(int64 display_id, float ui_scale); | 153 bool SetDisplayUIScale(int64 display_id, float ui_scale); |
| 151 | 154 |
| 152 // Sets the display's resolution. | 155 // Sets the display's resolution. |
| 153 // TODO(mukai): remove this and merge into SetDisplayMode. | 156 // TODO(mukai): remove this and merge into SetDisplayMode. |
| 154 void SetDisplayResolution(int64 display_id, const gfx::Size& resolution); | 157 void SetDisplayResolution(int64 display_id, const gfx::Size& resolution); |
| 155 | 158 |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 gfx::Display::Rotation registered_internal_display_rotation_; | 397 gfx::Display::Rotation registered_internal_display_rotation_; |
| 395 | 398 |
| 396 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; | 399 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; |
| 397 | 400 |
| 398 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 401 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
| 399 }; | 402 }; |
| 400 | 403 |
| 401 } // namespace ash | 404 } // namespace ash |
| 402 | 405 |
| 403 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ | 406 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ |
| OLD | NEW |