diff options
Diffstat (limited to 'chrome/common/gtk_util.h')
-rw-r--r-- | chrome/common/gtk_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h index 749aade..4f0278a 100644 --- a/chrome/common/gtk_util.h +++ b/chrome/common/gtk_util.h @@ -184,6 +184,10 @@ GdkCursor* GetCursor(GdkCursorType type); // Stacks a |popup| window directly on top of a |toplevel| window. void StackPopupWindow(GtkWidget* popup, GtkWidget* toplevel); +// Get a rectangle corresponding to a widget's allocation relative to its +// toplevel window's origin. +gfx::Rect GetWidgetRectRelativeToToplevel(GtkWidget* widget); + } // namespace gtk_util #endif // CHROME_COMMON_GTK_UTIL_H_ |