diff options
Diffstat (limited to 'app/l10n_util.cc')
-rw-r--r-- | app/l10n_util.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/l10n_util.cc b/app/l10n_util.cc index 2dd3cf2..f23de27 100644 --- a/app/l10n_util.cc +++ b/app/l10n_util.cc @@ -830,6 +830,12 @@ void WrapPathWithLTRFormatting(const FilePath& path, rtl_safe_path->push_back(kPopDirectionalFormatting); } +std::wstring GetDisplayStringInLTRDirectionality(std::wstring* text) { + if (GetTextDirection() == RIGHT_TO_LEFT) + WrapStringWithLTRFormatting(text); + return *text; +} + int DefaultCanvasTextAlignment() { if (GetTextDirection() == LEFT_TO_RIGHT) { return gfx::Canvas::TEXT_ALIGN_LEFT; |