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

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

Issue 10826198: Use persistent ID/names for displays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: ui/base/x/x11_util.h
diff --git a/ui/base/x/x11_util.h b/ui/base/x/x11_util.h
index c555d057ffa14bd7c6eb9551d196252459c6065e..fd6267ca5a9f001f3e6a4783e08a2c63ce56c551 100644
--- a/ui/base/x/x11_util.h
+++ b/ui/base/x/x11_util.h
@@ -236,6 +236,21 @@ UI_EXPORT void PutARGBImage(Display* display,
void FreePicture(Display* display, XID picture);
void FreePixmap(Display* display, XID pixmap);
+// Gets the list of the output displaying device handles via XRandR, and sets to
+// |outputs|. Returns false if it fails to get the list and |outputs| is
+// cleared.
+UI_EXPORT bool GetOutputDeviceHandles(std::vector<XID>* outputs);
+
+// Gets some useful data from the specified output device, such like
+// manufacturer's ID, serial#, and human readable name. Returns false if it
+// fails to get those data and doesn't touch manufacturer ID/serial#/name.
+// You can pass NULL to |manufacturer_id|, |serial_number|, and
Daniel Erat 2012/08/17 14:33:46 nit: change to "NULL can be passed for unwanted ou
Jun Mukai 2012/08/20 05:56:38 Done.
+// |human_readable_name| then it just ignores them.
+UI_EXPORT bool GetOutputDeviceData(XID output,
+ uint16* manufacturer_id,
+ uint32* serial_number,
+ std::string* human_readable_name);
+
enum WindowManagerName {
WM_UNKNOWN,
WM_BLACKBOX,

Powered by Google App Engine
This is Rietveld 408576698