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

Unified Diff: ash/display/display_manager.h

Issue 12746002: Re-implement overscan & Implement Display Rotation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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_info_unittest.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager.h
diff --git a/ash/display/display_manager.h b/ash/display/display_manager.h
index 11f4c0a02e68b3cc042901742396f74cf6cfd7ed..722d0113de7a89e30b9239a0922a18441b7cef5a 100644
--- a/ash/display/display_manager.h
+++ b/ash/display/display_manager.h
@@ -83,6 +83,9 @@ class ASH_EXPORT DisplayManager : public aura::RootWindowObserver {
// Clears the overscan insets
void ClearCustomOverscanInsets(int64 display_id);
+ // Sets the display's rotation.
+ void SetDisplayRotation(int64 display_id, DisplayInfo::Rotation rotation);
+
// Returns the current overscan insets for the specified |display_id|.
// Returns an empty insets (0, 0, 0, 0) if no insets are specified for
// the display.
@@ -144,6 +147,10 @@ class ASH_EXPORT DisplayManager : public aura::RootWindowObserver {
typedef std::vector<gfx::Display> DisplayList;
+ void set_change_display_upon_host_resize(bool value) {
+ change_display_upon_host_resize_ = value;
+ }
+
void Init();
void CycleDisplayImpl();
void ScaleDisplayImpl();
@@ -163,8 +170,7 @@ class ASH_EXPORT DisplayManager : public aura::RootWindowObserver {
// can be different from |new_info| (due to overscan state), so
// you must use |GetDisplayInfo| to get the correct DisplayInfo for
// a display.
- void InsertAndUpdateDisplayInfo(const DisplayInfo& new_info,
- bool can_overscan);
+ void InsertAndUpdateDisplayInfo(const DisplayInfo& new_info);
// Creates a display object from the DisplayInfo for |display_id|.
gfx::Display CreateDisplayFromDisplayInfoById(int64 display_id);
@@ -182,6 +188,13 @@ class ASH_EXPORT DisplayManager : public aura::RootWindowObserver {
// The mapping from the display ID to its internal data.
std::map<int64, DisplayInfo> display_info_;
+ // When set to true, the host window's resize event updates
+ // the display's size. This is set to true when running on
+ // desktop environment (for debugging) so that resizing the host
+ // window wil update the display properly. This is set to false
+ // on device as well as during the unit tests.
+ bool change_display_upon_host_resize_;
+
DISALLOW_COPY_AND_ASSIGN(DisplayManager);
};
« 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