summaryrefslogtreecommitdiffstats
path: root/chrome/common/gtk_util.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 20:12:20 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 20:12:20 +0000
commitf6582b315e31d5eb526ee97f9733130ae751dd20 (patch)
treeebec7de28867c4dc40ba8098860a7faf2d7f48a2 /chrome/common/gtk_util.h
parentd9194223c0a66fbb6b673778ee576d3815306e1f (diff)
downloadchromium_src-f6582b315e31d5eb526ee97f9733130ae751dd20.zip
chromium_src-f6582b315e31d5eb526ee97f9733130ae751dd20.tar.gz
chromium_src-f6582b315e31d5eb526ee97f9733130ae751dd20.tar.bz2
gtk: Handle RTL layout when positioning the tab strip drop arrow.
BUG=none TEST=none Review URL: http://codereview.chromium.org/149695 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gtk_util.h')
-rw-r--r--chrome/common/gtk_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h
index 6e1c231..9a71570 100644
--- a/chrome/common/gtk_util.h
+++ b/chrome/common/gtk_util.h
@@ -117,6 +117,10 @@ void SetButtonTriggersNavigation(GtkWidget* button);
// the original value is returned unchanged.
int MirroredLeftPointForRect(GtkWidget* widget, const gfx::Rect& bounds);
+// Returns the mirrored x value for the point |x| if the layout is RTL;
+// otherwise, the original value is returned unchanged.
+int MirroredXCoordinate(GtkWidget* widget, int x);
+
// Returns true if the pointer is currently inside the widget.
bool WidgetContainsCursor(GtkWidget* widget);