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 |