Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: ash/display/display_manager.h

Issue 1071353003: Prevent DisplayPreferences from saving incorrect rotations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/display/display_info_unittest.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ash/display/display_info_unittest.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698