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

Issue 10910128: Check string and UI direction in GetDisplayStringInLTRDirectionality, etc. (Closed)

Created:
8 years, 3 months ago by msw
Modified:
8 years, 3 months ago
Reviewers:
jungshik at Google, xji
CC:
chromium-reviews, erikwright+watch_chromium.org, jshin+watch_chromium.org
Visibility:
Public.

Description

Check string and UI direction in GetDisplayStringInLTRDirectionality, etc. Continue always wrapping the string in RTL UI. (in case it's appended to an RTL string later, etc.) Additionally wrap strings with RTL first strong characters in LTR UI. (previously, text inherited UI base direction, now it uses the first strong char) Add, expand upon, and cleanup unit tests. BUG=144541 TEST=Download shelf (and other UI) file paths are shown as LTR (without stray rendered glyphs or other regressions). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156459

Patch Set 1 : Check UI and text directionality. #

Patch Set 2 : Cleanup, add, expand upon RTLTests. #

Patch Set 3 : Add comment; more cleanup. #

Patch Set 4 : USE ARRAYSIZE_UNSAFE for unnamed struct arrays. #

Total comments: 9

Patch Set 5 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -92 lines) Patch
M base/i18n/rtl.h View 1 chunk +2 lines, -5 lines 0 comments Download
M base/i18n/rtl.cc View 1 2 3 4 1 chunk +8 lines, -5 lines 0 comments Download
M base/i18n/rtl_unittest.cc View 1 2 3 4 5 chunks +147 lines, -82 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
msw
Hey Xiaomei, please take a look; thanks!
8 years, 3 months ago (2012-09-07 05:37:58 UTC) #1
xji
https://chromiumcodereview.appspot.com/10910128/diff/2003/base/i18n/rtl.cc File base/i18n/rtl.cc (right): https://chromiumcodereview.appspot.com/10910128/diff/2003/base/i18n/rtl.cc#newcode324 base/i18n/rtl.cc:324: if (!IsRTL() && GetFirstStrongCharacterDirection(text) == LEFT_TO_RIGHT) why RTL locale ...
8 years, 3 months ago (2012-09-10 18:07:26 UTC) #2
msw
https://chromiumcodereview.appspot.com/10910128/diff/2003/base/i18n/rtl.cc File base/i18n/rtl.cc (right): https://chromiumcodereview.appspot.com/10910128/diff/2003/base/i18n/rtl.cc#newcode324 base/i18n/rtl.cc:324: if (!IsRTL() && GetFirstStrongCharacterDirection(text) == LEFT_TO_RIGHT) On 2012/09/10 18:07:26, ...
8 years, 3 months ago (2012-09-10 18:37:31 UTC) #3
xji
lgtm https://chromiumcodereview.appspot.com/10910128/diff/2003/base/i18n/rtl.cc File base/i18n/rtl.cc (right): https://chromiumcodereview.appspot.com/10910128/diff/2003/base/i18n/rtl.cc#newcode324 base/i18n/rtl.cc:324: if (!IsRTL() && GetFirstStrongCharacterDirection(text) == LEFT_TO_RIGHT) On 2012/09/10 ...
8 years, 3 months ago (2012-09-10 22:27:57 UTC) #4
msw
https://chromiumcodereview.appspot.com/10910128/diff/2003/base/i18n/rtl.cc File base/i18n/rtl.cc (right): https://chromiumcodereview.appspot.com/10910128/diff/2003/base/i18n/rtl.cc#newcode324 base/i18n/rtl.cc:324: if (!IsRTL() && GetFirstStrongCharacterDirection(text) == LEFT_TO_RIGHT) On 2012/09/10 22:27:57, ...
8 years, 3 months ago (2012-09-10 22:46:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10910128/2003
8 years, 3 months ago (2012-09-10 22:47:09 UTC) #6
commit-bot: I haz the power
Presubmit check for 10910128-2003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-10 22:47:12 UTC) #7
msw
Hey Jungshik, please take a look for OWNERS; thanks!
8 years, 3 months ago (2012-09-10 23:38:28 UTC) #8
msw
Friendly ping; jshin, can you take a look?
8 years, 3 months ago (2012-09-12 19:37:49 UTC) #9
jungshik at Google
Sorry for the delay. I have a couple of minor comments. Otherwise, looks good. http://codereview.chromium.org/10910128/diff/2003/base/i18n/rtl.cc ...
8 years, 3 months ago (2012-09-12 20:24:34 UTC) #10
msw
Comments addressed, please take another look; thanks! https://chromiumcodereview.appspot.com/10910128/diff/2003/base/i18n/rtl.cc File base/i18n/rtl.cc (right): https://chromiumcodereview.appspot.com/10910128/diff/2003/base/i18n/rtl.cc#newcode156 base/i18n/rtl.cc:156: return LEFT_TO_RIGHT; ...
8 years, 3 months ago (2012-09-12 20:46:52 UTC) #11
jungshik at Google
LGTM ! As for the tangential TODO in another file, what you proposed seems to ...
8 years, 3 months ago (2012-09-12 22:14:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10910128/2007
8 years, 3 months ago (2012-09-12 22:16:13 UTC) #13
commit-bot: I haz the power
8 years, 3 months ago (2012-09-13 01:47:38 UTC) #14
Change committed as 156459

Powered by Google App Engine
This is Rietveld 408576698