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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 const gfx::Point& point_in_screen) const; | 144 const gfx::Point& point_in_screen) const; |
145 | 145 |
146 // Sets the work area's |insets| to the display given by |display_id|. | 146 // Sets the work area's |insets| to the display given by |display_id|. |
147 bool UpdateWorkAreaOfDisplay(int64 display_id, const gfx::Insets& insets); | 147 bool UpdateWorkAreaOfDisplay(int64 display_id, const gfx::Insets& insets); |
148 | 148 |
149 // Registers the overscan insets for the display of the specified ID. Note | 149 // Registers the overscan insets for the display of the specified ID. Note |
150 // that the insets size should be specified in DIP size. It also triggers the | 150 // that the insets size should be specified in DIP size. It also triggers the |
151 // display's bounds change. | 151 // display's bounds change. |
152 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip); | 152 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip); |
153 | 153 |
154 // Sets the display's rotation. | 154 // Sets the display's rotation for the given |source|. The new |rotation| will |
155 void SetDisplayRotation(int64 display_id, gfx::Display::Rotation rotation); | 155 // also become active. |
| 156 void SetDisplayRotation(int64 display_id, |
| 157 gfx::Display::Rotation rotation, |
| 158 gfx::Display::RotationSource source); |
156 | 159 |
157 // Sets the display's ui scale. Returns true if it's successful, or | 160 // Sets the display's ui scale. Returns true if it's successful, or |
158 // false otherwise. TODO(mukai): remove this and merge into | 161 // false otherwise. TODO(mukai): remove this and merge into |
159 // SetDisplayMode. | 162 // SetDisplayMode. |
160 bool SetDisplayUIScale(int64 display_id, float ui_scale); | 163 bool SetDisplayUIScale(int64 display_id, float ui_scale); |
161 | 164 |
162 // Sets the display's resolution. | 165 // Sets the display's resolution. |
163 // TODO(mukai): remove this and merge into SetDisplayMode. | 166 // TODO(mukai): remove this and merge into SetDisplayMode. |
164 void SetDisplayResolution(int64 display_id, const gfx::Size& resolution); | 167 void SetDisplayResolution(int64 display_id, const gfx::Size& resolution); |
165 | 168 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 gfx::Display::Rotation registered_internal_display_rotation_; | 403 gfx::Display::Rotation registered_internal_display_rotation_; |
401 | 404 |
402 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; | 405 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; |
403 | 406 |
404 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 407 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
405 }; | 408 }; |
406 | 409 |
407 } // namespace ash | 410 } // namespace ash |
408 | 411 |
409 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ | 412 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ |
OLD | NEW |