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 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); |