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

Issue 2853523002: [rendertext,i18n] Added flag to force RTL rendering (Closed)

Created:
3 years, 7 months ago by Kevin Bailey
Modified:
3 years, 7 months ago
CC:
chromium-reviews, danakj+watch_chromium.org, derat+watch_chromium.org, asvitkine+watch_chromium.org, jshin+watch_chromium.org, vmpstr+watch_chromium.org, Matt Giuca
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[rendertext,i18n] Added flag to force RTL rendering Added command line flag to enable testing of RTL rendering of LTR languages (and vice versa). Complements "--force-ui-direction". BUG=716660 Review-Url: https://codereview.chromium.org/2853523002 Cr-Commit-Position: refs/heads/master@{#468632} Committed: https://chromium.googlesource.com/chromium/src/+/6822b60b6967b700212972aefcceda3aad23785c

Patch Set 1 #

Total comments: 14

Patch Set 2 : Corrected ordering and text, added cached look-ups #

Total comments: 12

Patch Set 3 : Absorbed functions and added comments #

Patch Set 4 : Missed a comment #

Total comments: 2

Patch Set 5 : Made method stand-alone and anonymous #

Patch Set 6 : Forgot to update histograms.xml #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -18 lines) Patch
M base/i18n/base_i18n_switches.h View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M base/i18n/base_i18n_switches.cc View 1 2 1 chunk +8 lines, -3 lines 0 comments Download
M base/i18n/rtl.cc View 1 2 2 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 2 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/flag_descriptions.h View 1 2 1 chunk +10 lines, -4 lines 0 comments Download
M chrome/browser/flag_descriptions.cc View 1 2 1 chunk +9 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 4 3 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (20 generated)
Kevin Bailey
Hi, jshin, could you take a look at the i18n changes? msw, could you take ...
3 years, 7 months ago (2017-04-28 14:38:06 UTC) #3
msw
What utility does this offer that isn't covered by existing patterns? Most test either set ...
3 years, 7 months ago (2017-04-28 20:33:08 UTC) #4
msw
On 2017/04/28 20:33:08, msw wrote: > What utility does this offer that isn't covered by ...
3 years, 7 months ago (2017-04-28 20:34:14 UTC) #5
Kevin Bailey
On 2017/04/28 20:34:14, msw wrote: > What utility does this offer that isn't covered by ...
3 years, 7 months ago (2017-04-28 20:40:45 UTC) #6
Justin Donnelly
On 2017/04/28 20:40:45, Kevin Bailey wrote: > On 2017/04/28 20:34:14, msw wrote: > > What ...
3 years, 7 months ago (2017-04-28 20:51:45 UTC) #7
msw
Okay I buy it. I'm glad to see additional RTL testing, even if it's not ...
3 years, 7 months ago (2017-04-28 22:04:03 UTC) #8
Kevin Bailey
https://codereview.chromium.org/2853523002/diff/1/base/i18n/base_i18n_switches.h File base/i18n/base_i18n_switches.h (right): https://codereview.chromium.org/2853523002/diff/1/base/i18n/base_i18n_switches.h#newcode16 base/i18n/base_i18n_switches.h:16: BASE_I18N_EXPORT extern const char kForceUIDirectionLTR[]; On 2017/04/28 22:04:03, msw ...
3 years, 7 months ago (2017-04-29 04:24:04 UTC) #9
jungshik at Google
LGTM I thought a pseudo-RTL locale had been added for testing, but I couldn't find ...
3 years, 7 months ago (2017-05-01 05:44:37 UTC) #11
msw
lgtm with nits; thanks. https://codereview.chromium.org/2853523002/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/2853523002/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode1400 ui/gfx/render_text_harfbuzz.cc:1400: CheckForcedDirection(&run->level); On 2017/04/29 04:24:03, Kevin ...
3 years, 7 months ago (2017-05-01 20:56:18 UTC) #12
Kevin Bailey
https://codereview.chromium.org/2853523002/diff/20001/base/i18n/base_i18n_switches.cc File base/i18n/base_i18n_switches.cc (right): https://codereview.chromium.org/2853523002/diff/20001/base/i18n/base_i18n_switches.cc#newcode18 base/i18n/base_i18n_switches.cc:18: const char kForceDirectionLTR[] = "ltr"; On 2017/05/01 20:56:18, msw ...
3 years, 7 months ago (2017-05-01 21:21:42 UTC) #13
msw
Sorry, I missed one nit; still lgtm with that fixed. https://codereview.chromium.org/2853523002/diff/60001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/2853523002/diff/60001/ui/gfx/render_text_harfbuzz.cc#newcode1346 ...
3 years, 7 months ago (2017-05-01 21:55:33 UTC) #14
Kevin Bailey
No worries. https://codereview.chromium.org/2853523002/diff/60001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/2853523002/diff/60001/ui/gfx/render_text_harfbuzz.cc#newcode1346 ui/gfx/render_text_harfbuzz.cc:1346: void RenderTextHarfBuzz::CheckForcedDirection(UBiDiLevel* level) { On 2017/05/01 21:55:33, ...
3 years, 7 months ago (2017-05-01 22:06:32 UTC) #15
msw
lgtm
3 years, 7 months ago (2017-05-01 22:07:45 UTC) #17
Kevin Bailey
Hi mpearson@, could you bless histograms.xml ? thx, krb
3 years, 7 months ago (2017-05-02 00:09:02 UTC) #25
Mark P
histograms.xml lgtm
3 years, 7 months ago (2017-05-02 04:29:44 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2853523002/100001
3 years, 7 months ago (2017-05-02 14:48:20 UTC) #33
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 14:54:07 UTC) #37
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/6822b60b6967b700212972aefcce...

Powered by Google App Engine
This is Rietveld 408576698