Index: ui/base/x/x11_util.h |
diff --git a/ui/base/x/x11_util.h b/ui/base/x/x11_util.h |
index 940875a2bafbf42fdf8c96bca29910d540edadea..592e48a0d3d4002f40c3be540a4a7025ca1325c5 100644 |
--- a/ui/base/x/x11_util.h |
+++ b/ui/base/x/x11_util.h |
@@ -164,6 +164,15 @@ UI_EXPORT bool WindowContainsPoint(XID window, gfx::Point screen_loc); |
// Return true if |window| has any property with |property_name|. |
UI_EXPORT bool PropertyExists(XID window, const std::string& property_name); |
+// Returns the raw bytes from a property with minimal |
+// interpretation. |out_data| should be freed by XFree() after use. |
+UI_EXPORT bool GetRawBytesOfProperty(XID window, |
+ Atom property, |
+ unsigned char** out_data, |
+ size_t* out_data_bytes, |
+ size_t* out_data_items, |
+ Atom* out_type); |
+ |
// Get the value of an int, int array, atom array or string property. On |
// success, true is returned and the value is stored in |value|. |
// |
@@ -171,6 +180,8 @@ UI_EXPORT bool PropertyExists(XID window, const std::string& property_name); |
// should accept an Atom instead of a string. |
UI_EXPORT bool GetIntProperty(XID window, const std::string& property_name, |
int* value); |
+UI_EXPORT bool GetXIDProperty(XID window, const std::string& property_name, |
+ XID* value); |
UI_EXPORT bool GetIntArrayProperty(XID window, const std::string& property_name, |
std::vector<int>* value); |
UI_EXPORT bool GetAtomArrayProperty(XID window, |
@@ -179,6 +190,7 @@ UI_EXPORT bool GetAtomArrayProperty(XID window, |
UI_EXPORT bool GetStringProperty( |
XID window, const std::string& property_name, std::string* value); |
+// These setters all make round trips. |
UI_EXPORT bool SetIntProperty(XID window, |
const std::string& name, |
const std::string& type, |
@@ -187,6 +199,10 @@ UI_EXPORT bool SetIntArrayProperty(XID window, |
const std::string& name, |
const std::string& type, |
const std::vector<int>& value); |
+UI_EXPORT bool SetAtomArrayProperty(XID window, |
+ const std::string& name, |
+ const std::string& type, |
+ const std::vector<Atom>& value); |
// Gets the X atom for default display corresponding to atom_name. |
Atom GetAtom(const char* atom_name); |