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

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: remove persistent_id() and change id() to int64 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..106be0e8376c89a4d7db2a179af8edebcae864fc 100644
--- a/ui/base/x/x11_util.h
+++ b/ui/base/x/x11_util.h
@@ -236,6 +236,19 @@ 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.
+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