diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-23 20:29:07 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-23 20:29:07 +0000 |
commit | 6c940e699a1bf82046416bed61040a8568b42197 (patch) | |
tree | 552d1245076b8b0286a7e97343c28b6a11306d61 /chrome/common/gtk_util.h | |
parent | adfb98c43223a2f40da7d6ee76a9dae3f8c57070 (diff) | |
download | chromium_src-6c940e699a1bf82046416bed61040a8568b42197.zip chromium_src-6c940e699a1bf82046416bed61040a8568b42197.tar.gz chromium_src-6c940e699a1bf82046416bed61040a8568b42197.tar.bz2 |
Handle RTL layout in the gtk tabstrip.
BUG=none
TEST=Open the browser with --lang=he and make sure the tabs are ordered starting from the right. Also, the UI elements in the tabs should be reversed as well.
Review URL: http://codereview.chromium.org/147020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19051 0039d316-1c4b-4281-b951-d872f2087c98
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 2f38092..a8aa205 100644 --- a/chrome/common/gtk_util.h +++ b/chrome/common/gtk_util.h @@ -97,6 +97,10 @@ void EnumerateTopLevelWindows(x11_util::EnumerateWindowsDelegate* delegate); // those events. void SetButtonTriggersNavigation(GtkWidget* button); +// Returns the mirrored x value for |bounds| if the layout is RTL; otherwise, +// the original value is returned unchanged. +int MirroredLeftPointForRect(GtkWidget* widget, const gfx::Rect& bounds); + } // namespace gtk_util #endif // CHROME_COMMON_GTK_UTIL_H_ |