summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/gtk_util.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-07 21:00:33 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-07 21:00:33 +0000
commitc4d6f87b0cf6ee6d8478a79875700600b049d1df (patch)
treee3fd77172b81c7d83ac495d96f973881946c7482 /chrome/browser/gtk/gtk_util.h
parent875f8f9b0757f2029b21cead7822db116ea525e0 (diff)
downloadchromium_src-c4d6f87b0cf6ee6d8478a79875700600b049d1df.zip
chromium_src-c4d6f87b0cf6ee6d8478a79875700600b049d1df.tar.gz
chromium_src-c4d6f87b0cf6ee6d8478a79875700600b049d1df.tar.bz2
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
Diffstat (limited to 'chrome/browser/gtk/gtk_util.h')
-rw-r--r--chrome/browser/gtk/gtk_util.h4
1 files changed, 4 insertions, 0 deletions
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_