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

Unified Diff: ui/display/chromeos/x11/display_util.h

Issue 187073002: Refactoring display configuration state to allow generic state objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 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 | « ui/display/chromeos/x11/display_snapshot_x11.cc ('k') | ui/display/chromeos/x11/display_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/x11/display_util.h
diff --git a/ui/display/chromeos/x11/display_util.h b/ui/display/chromeos/x11/display_util.h
index d8946b87c274e63369d7e8f673e9ee96069956dc..33d95452d1e0f01a9b21a52a54c5a10056bdd0e4 100644
--- a/ui/display/chromeos/x11/display_util.h
+++ b/ui/display/chromeos/x11/display_util.h
@@ -7,8 +7,10 @@
#include <string>
-#include "ui/display/chromeos/output_configurator.h"
#include "ui/display/display_constants.h"
+#include "ui/display/display_export.h"
+
+typedef unsigned long RROutput;
namespace ui {
@@ -17,17 +19,14 @@ namespace ui {
DISPLAY_EXPORT OutputType GetOutputTypeFromName(const std::string& name);
// Generate the human readable string from EDID obtained from |output|.
-DISPLAY_EXPORT std::string GetDisplayName(
- const OutputConfigurator::OutputSnapshot& output);
+DISPLAY_EXPORT std::string GetDisplayName(RROutput output);
// Gets the overscan flag from |output| and stores to |flag|. Returns true if
// the flag is found. Otherwise returns false and doesn't touch |flag|. The
// output will produce overscan if |flag| is set to true, but the output may
// still produce overscan even though it returns true and |flag| is set to
// false.
-DISPLAY_EXPORT bool GetOutputOverscanFlag(
- const OutputConfigurator::OutputSnapshot& output,
- bool* flag);
+DISPLAY_EXPORT bool GetOutputOverscanFlag(RROutput output, bool* flag);
DISPLAY_EXPORT bool ParseOutputOverscanFlag(const unsigned char* prop,
unsigned long nitems,
« no previous file with comments | « ui/display/chromeos/x11/display_snapshot_x11.cc ('k') | ui/display/chromeos/x11/display_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698