summaryrefslogtreecommitdiffstats
path: root/app/l10n_util.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-01 08:27:32 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-01 08:27:32 +0000
commitf8f606ef03a8afd7564c7f5a1bf82b54e6a6b392 (patch)
treebebb9be6f4b3a4a090917db063177fb5fb58f1dc /app/l10n_util.h
parent2cf57c8de64c62ec4f9c18ebf30b30961b208c3e (diff)
downloadchromium_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.h4
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|.