Index: ui/base/x/x11_util.h |
=================================================================== |
--- ui/base/x/x11_util.h (revision 72012) |
+++ ui/base/x/x11_util.h (working copy) |
@@ -17,6 +17,7 @@ |
#include "base/basictypes.h" |
+typedef unsigned long Atom; |
typedef struct _GdkDrawable GdkWindow; |
typedef struct _GtkWidget GtkWidget; |
typedef struct _GtkWindow GtkWindow; |
@@ -76,11 +77,15 @@ |
bool IsWindowVisible(XID window); |
// Returns the bounds of |window|. |
bool GetWindowRect(XID window, gfx::Rect* rect); |
-// Get the value of an int, int array, or string property. On |
+// Return true if |window| has any property with |property_name|. |
+bool ExistsProperty(XID window, const std::string& property_name); |
Daniel Erat
2011/01/21 01:28:17
nit: "PropertyExists"
jianli
2011/01/21 20:21:00
Done.
|
+// 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|. |
bool GetIntProperty(XID window, const std::string& property_name, int* value); |
bool GetIntArrayProperty(XID window, const std::string& property_name, |
std::vector<int>* value); |
+bool GetAtomArrayProperty(XID window, const std::string& property_name, |
+ std::vector<Atom>* value); |
bool GetStringProperty( |
XID window, const std::string& property_name, std::string* value); |