Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5393)

Unified Diff: base/i18n/rtl.h

Issue 112063003: Implement eliding/truncating at end in RenderText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/i18n/rtl.cc » ('j') | chrome/browser/ui/views/omnibox/omnibox_result_view.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/rtl.h
diff --git a/base/i18n/rtl.h b/base/i18n/rtl.h
index c80d2f85777e6d31745057381618011fa549d45c..9b087e22805aaada2ba734823acec44589b3778c 100644
--- a/base/i18n/rtl.h
+++ b/base/i18n/rtl.h
@@ -73,6 +73,13 @@ BASE_I18N_EXPORT TextDirection GetTextDirectionForLocale(
BASE_I18N_EXPORT TextDirection GetFirstStrongCharacterDirection(
const string16& text);
+// Given the string in |text|, returns the directionality of the last
msw 2013/12/11 08:10:14 nit: combine this with the comment above, via "of
Anuj 2013/12/12 08:08:41 Done.
+// character with strong directionality in the string. If no character in the
+// text has strong directionality, LEFT_TO_RIGHT is returned. See
+// GetFirstStrongCharacterDirection for more info.
+BASE_I18N_EXPORT TextDirection GetLastStrongCharacterDirection(
+ const string16& text);
+
// Given the string in |text|, returns LEFT_TO_RIGHT or RIGHT_TO_LEFT if all the
// strong directionality characters in the string are of the same
// directionality. It returns UNKNOWN_DIRECTION if the string contains a mix of
« no previous file with comments | « no previous file | base/i18n/rtl.cc » ('j') | chrome/browser/ui/views/omnibox/omnibox_result_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698