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

Unified Diff: chrome/common/gtk_util.h

Issue 119345: Use the convenience function gdk_screen_get_window_stack to enumerate top-lev... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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: chrome/common/gtk_util.h
===================================================================
--- chrome/common/gtk_util.h (revision 17916)
+++ chrome/common/gtk_util.h (working copy)
@@ -10,6 +10,7 @@
#include "base/gfx/point.h"
#include "base/gfx/rect.h"
+#include "chrome/common/x11_util.h"
#include "webkit/glue/window_open_disposition.h"
typedef struct _GtkWidget GtkWidget;
@@ -79,6 +80,18 @@
// Returns true if the screen is composited, false otherwise.
bool IsScreenComposited();
+// Implementers of this interface receive a notification for every top-level
+// gdk window of the current display.
+class EnumerateWindowsDelegate {
+ public:
+ // |xid| is the X Window ID of the enumerated window. Return true to stop
+ // further iteration.
+ virtual bool ShouldStopIterating(XID xid) = 0;
+};
+
+// Enumerates the top-level gdk windows of the current display.
+void EnumerateChildWindows(EnumerateWindowsDelegate* delegate);
+
} // namespace gtk_util
#endif // CHROME_COMMON_GTK_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698