diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-01 08:27:32 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-01 08:27:32 +0000 |
commit | f8f606ef03a8afd7564c7f5a1bf82b54e6a6b392 (patch) | |
tree | bebb9be6f4b3a4a090917db063177fb5fb58f1dc /app/l10n_util.h | |
parent | 2cf57c8de64c62ec4f9c18ebf30b30961b208c3e (diff) | |
download | chromium_src-f8f606ef03a8afd7564c7f5a1bf82b54e6a6b392.zip chromium_src-f8f606ef03a8afd7564c7f5a1bf82b54e6a6b392.tar.gz chromium_src-f8f606ef03a8afd7564c7f5a1bf82b54e6a6b392.tar.bz2 |
linux: use ICU direction for determining text direction in renderer
We use the GTK text direction in the browser process, but that
is not available in the renderer.
BUG=36624
TEST=Arabic error pages are properly RTL
Review URL: http://codereview.chromium.org/660176
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40260 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/l10n_util.h')
-rw-r--r-- | app/l10n_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/l10n_util.h b/app/l10n_util.h index 66b9d23..b87442c 100644 --- a/app/l10n_util.h +++ b/app/l10n_util.h @@ -194,6 +194,10 @@ enum TextDirection { // * LEFT_TO_RIGHT: Left-To-Right (e.g. English, Chinese, etc.); // * RIGHT_TO_LEFT: Right-To-Left (e.g. Arabic, Hebrew, etc.), and; // * UNKNOWN_DIRECTION: unknown (or error). +TextDirection GetICUTextDirection(); + +// Get the application text direction. (This is just the ICU direction, +// except on GTK.) TextDirection GetTextDirection(); // Returns the text direction for |locale_name|. |