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

Unified Diff: ash/display/display_info.h

Issue 1108343002: Revert of Merge Prevent DisplayPreferences from saving incorrect rotations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2357
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/display/display_controller_unittest.cc ('k') | ash/display/display_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_info.h
diff --git a/ash/display/display_info.h b/ash/display/display_info.h
index 34f229927c17097562b592b35d9c0604c0e1d9a2..427355b801296d1033c0e6da0872d04c3060ed9b 100644
--- a/ash/display/display_info.h
+++ b/ash/display/display_info.h
@@ -5,7 +5,6 @@
#ifndef ASH_DISPLAY_DISPLAY_INFO_H_
#define ASH_DISPLAY_DISPLAY_INFO_H_
-#include <map>
#include <string>
#include <vector>
@@ -104,6 +103,9 @@
// actual overscan automatically, but used in the message.
bool has_overscan() const { return has_overscan_; }
+ void set_rotation(gfx::Display::Rotation rotation) { rotation_ = rotation; }
+ gfx::Display::Rotation rotation() const { return rotation_; }
+
void set_touch_support(gfx::Display::TouchSupport support) {
touch_support_ = support;
}
@@ -136,17 +138,6 @@
// (the effective ui scale is 1.0 in this case).
float configured_ui_scale() const { return configured_ui_scale_; }
void set_configured_ui_scale(float scale) { configured_ui_scale_ = scale; }
-
- // Sets the rotation for the given |source|. Setting a new rotation will also
- // have it become the active rotation.
- void SetRotation(gfx::Display::Rotation rotation,
- gfx::Display::RotationSource source);
-
- // Returns the currently active rotation for this display.
- gfx::Display::Rotation GetActiveRotation() const;
-
- // Returns the rotation set by a given |source|.
- gfx::Display::Rotation GetRotation(gfx::Display::RotationSource source) const;
// Returns the ui scale and device scale factor actually used to create
// display that chrome sees. This can be different from one obtained
@@ -240,7 +231,7 @@
int64 id_;
std::string name_;
bool has_overscan_;
- std::map<gfx::Display::RotationSource, gfx::Display::Rotation> rotations_;
+ gfx::Display::Rotation rotation_;
gfx::Display::TouchSupport touch_support_;
// If the display is also a touch device, it will have a positive
« no previous file with comments | « ash/display/display_controller_unittest.cc ('k') | ash/display/display_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698