summaryrefslogtreecommitdiffstats
path: root/chrome/common/x11_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/x11_util.h')
-rw-r--r--chrome/common/x11_util.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/common/x11_util.h b/chrome/common/x11_util.h
index aef133f..dddd40c 100644
--- a/chrome/common/x11_util.h
+++ b/chrome/common/x11_util.h
@@ -77,9 +77,17 @@ Display* GetSecondaryDisplay();
// These functions must be called on the BACKGROUND_X11 thread since they
// reference GetSecondaryDisplay().
-void GetWindowGeometry(int* x, int* y, unsigned* width, unsigned* height,
+// Get the position of the given window in screen coordinates as well as its
+// current size.
+bool GetWindowGeometry(int* x, int* y, unsigned* width, unsigned* height,
XID window);
+// Find the immediate parent of an X window.
+//
+// parent_window: (output) the parent window of |window|, or 0.
+// parent_is_root: (output) true iff the parent of |window| is the root window.
+bool GetWindowParent(XID* parent_window, bool* parent_is_root, XID window);
+
} // namespace x11_util
#endif // CHROME_COMMON_X11_UTIL_H_