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

Unified Diff: chromeos/monitor/output_configurator.h

Issue 10532053: Detect output state at startup to avoid changes (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address nit Created 8 years, 6 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 | « no previous file | chromeos/monitor/output_configurator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/monitor/output_configurator.h
diff --git a/chromeos/monitor/output_configurator.h b/chromeos/monitor/output_configurator.h
index b59474f28dd56ed9cef003d453db4ba02c51e89f..4e6bb5f27ae32a2e69dc88fcc094e42b6022a213 100644
--- a/chromeos/monitor/output_configurator.h
+++ b/chromeos/monitor/output_configurator.h
@@ -103,6 +103,13 @@ class CHROMEOS_EXPORT OutputConfigurator : public MessageLoop::Dispatcher {
// displays.
State GetDefaultState() const;
+ // Called during start-up to determine what the current state of the displays
+ // appears to be, by investigating how the outputs compare to the data stored
+ // in |output_cache_|. Returns STATE_INVALID if the current display state
+ // doesn't match any supported state. |output_cache_| must be up-to-date with
+ // regards to the state of X or this method may return incorrect results.
+ State InferCurrentState(Display* display, XRRScreenResources* screen) const;
+
// This is detected by the constructor to determine whether or not we should
// be enabled. If we aren't running on ChromeOS, we can't assume that the
// Xrandr X11 extension is supported.
« no previous file with comments | « no previous file | chromeos/monitor/output_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698