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

Unified Diff: ui/base/x/x11_util.h

Issue 11725005: Checks the possibility of overscans from EDID extension data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix / adding x11_util_unittest.cc Created 7 years, 12 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 | ui/base/x/x11_util.cc » ('j') | ui/base/x/x11_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/x11_util.h
diff --git a/ui/base/x/x11_util.h b/ui/base/x/x11_util.h
index e7169a6f0d1515dd2fdf21f95194dabb87292cb3..46af97b469c643ead51df631aeb497e826a1e743 100644
--- a/ui/base/x/x11_util.h
+++ b/ui/base/x/x11_util.h
@@ -276,6 +276,26 @@ UI_EXPORT bool GetOutputDeviceData(XID output,
uint32* serial_number,
std::string* human_readable_name);
+// Returns true if the EDID for the output has the flag of overscan. Note that
+// returning false does not mean no overscan, it just means the lack of flag.
+// This is exported for x11_util_unittest.cc.
+UI_EXPORT bool HasOutputOverscanFlag(XID output);
+
+// Parse |prop| as EDID data and stores extracted data into |manufacturer_id|,
Daniel Erat 2013/01/03 21:59:14 nit: s/Parse/Parses/
Jun Mukai 2013/01/03 22:50:53 Done.
+// |serial_number|, and |human_readable_name| and returns true. // This is
Daniel Erat 2013/01/03 21:59:14 nit: remove extra '//'
Jun Mukai 2013/01/03 22:50:53 Done.
+// exported for x11_util_unittest.cc.
+UI_EXPORT bool ParseOutputDeviceData(const unsigned char* prop,
+ unsigned long nitems,
+ uint16* manufacturer_id,
+ uint32* serial_number,
+ std::string* human_readable_name);
+
+// Parse |prop| as EDID data and stores overscan flag to |flag|. Returns true
+// if the flag is found.
+UI_EXPORT bool ParseOutputOverscanFlag(const unsigned char* prop,
+ unsigned long nitems,
+ bool* flag);
+
// Gets the names of the all displays physically connected to the system.
UI_EXPORT std::vector<std::string> GetDisplayNames(
const std::vector<XID>& output_id);
« no previous file with comments | « no previous file | ui/base/x/x11_util.cc » ('j') | ui/base/x/x11_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698