From c4d6f87b0cf6ee6d8478a79875700600b049d1df Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Wed, 7 Apr 2010 21:00:33 +0000 Subject: GTK: position info bubbles relative to a subwidget, rather than the toplevel window. (Client code can still use a toplevel widget as the anchor.) BUG=40068 TEST=tried all popups in LTR and RTL Review URL: http://codereview.chromium.org/1575019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43876 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/gtk_util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/browser/gtk/gtk_util.h') diff --git a/chrome/browser/gtk/gtk_util.h b/chrome/browser/gtk/gtk_util.h index 9a65193..b100b1d 100644 --- a/chrome/browser/gtk/gtk_util.h +++ b/chrome/browser/gtk/gtk_util.h @@ -256,6 +256,10 @@ WindowOpenDisposition DispositionForCurrentButtonPressEvent(); // for success. bool GrabAllInput(GtkWidget* widget); +// Returns a rectangle that represents the widget's bounds. The rectangle it +// returns is the same as widget->allocation, but anchored at (0, 0). +gfx::Rect WidgetBounds(GtkWidget* widget); + } // namespace gtk_util #endif // CHROME_BROWSER_GTK_GTK_UTIL_H_ -- cgit v1.1