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

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

Issue 6359008: Do not show notifications when in fullscreen or screensaver mode.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
===================================================================
--- 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);

Powered by Google App Engine
This is Rietveld 408576698