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

Unified Diff: chromeos/display/output_configurator.h

Issue 23286003: ash: Get output info from chromeos instead of XRandR. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use index from XRandR Created 7 years, 4 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/shell.cc ('k') | chromeos/display/output_configurator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/display/output_configurator.h
diff --git a/chromeos/display/output_configurator.h b/chromeos/display/output_configurator.h
index b02d5a31a99ca5cd96ce82fdd88c85107a661971..5891785381cb22161e41415a98e62b8fd00679b1 100644
--- a/chromeos/display/output_configurator.h
+++ b/chromeos/display/output_configurator.h
@@ -44,6 +44,7 @@ class CHROMEOS_EXPORT OutputConfigurator
public:
struct ModeInfo {
ModeInfo();
+ ModeInfo(int width, int height, bool interlaced);
int width;
int height;
@@ -106,6 +107,10 @@ class CHROMEOS_EXPORT OutputConfigurator
int64 display_id;
bool has_display_id;
+
+ // This output's index in the array returned by XRandR. Stable even as
+ // outputs are connected or disconnected.
+ int index;
};
class Observer {
« no previous file with comments | « ash/shell.cc ('k') | chromeos/display/output_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698