Chromium Code Reviews| 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..3d397330fec06710f0998dafc25b8391d867bf34 100644 |
| --- a/ui/base/x/x11_util.h |
| +++ b/ui/base/x/x11_util.h |
| @@ -164,6 +164,14 @@ 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. |
|
Daniel Erat
2013/06/17 22:09:57
document ownership of the memory pointed at by |ou
|
| +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 +179,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, |
| @@ -187,6 +197,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); |