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 for the given |source|. The new |rotation| will | 154 // Sets the display's rotation. |
155 // also become active. | 155 void SetDisplayRotation(int64 display_id, gfx::Display::Rotation rotation); |
156 void SetDisplayRotation(int64 display_id, | |
157 gfx::Display::Rotation rotation, | |
158 gfx::Display::RotationSource source); | |
159 | 156 |
160 // Sets the display's ui scale. Returns true if it's successful, or | 157 // Sets the display's ui scale. Returns true if it's successful, or |
161 // false otherwise. TODO(mukai): remove this and merge into | 158 // false otherwise. TODO(mukai): remove this and merge into |
162 // SetDisplayMode. | 159 // SetDisplayMode. |
163 bool SetDisplayUIScale(int64 display_id, float ui_scale); | 160 bool SetDisplayUIScale(int64 display_id, float ui_scale); |
164 | 161 |
165 // Sets the display's resolution. | 162 // Sets the display's resolution. |
166 // TODO(mukai): remove this and merge into SetDisplayMode. | 163 // TODO(mukai): remove this and merge into SetDisplayMode. |
167 void SetDisplayResolution(int64 display_id, const gfx::Size& resolution); | 164 void SetDisplayResolution(int64 display_id, const gfx::Size& resolution); |
168 | 165 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 gfx::Display::Rotation registered_internal_display_rotation_; | 400 gfx::Display::Rotation registered_internal_display_rotation_; |
404 | 401 |
405 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; | 402 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; |
406 | 403 |
407 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 404 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
408 }; | 405 }; |
409 | 406 |
410 } // namespace ash | 407 } // namespace ash |
411 | 408 |
412 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ | 409 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ |
OLD | NEW |