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

Issue 10701024: Fix eliding of LTR tab title in RTL UI under non-Windows Views. (Closed)

Created:
8 years, 5 months ago by Alexei Svitkine (slow)
Modified:
8 years, 5 months ago
Reviewers:
msw, sky, xji
CC:
chromium-reviews
Visibility:
Public.

Description

Fix eliding of LTR tab title in RTL UI under non-Windows Views. Use DrawFadeTruncatingString() on non-Windows views platforms too, now that the implementation is no longer platform specific. BUG=135058 TEST=Launch chromeos chrome with --lang=he and go to amazon.com. Check that the tab title is painted LTR and elided (via fade truncation) on the right end. Now, go to google.com. Verify that the "Google" string is right-aligned in the tab title. TBR=sky@chromium.org,xji@chromium.org R=msw@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145432

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -11 lines) Patch
M chrome/browser/ui/views/tabs/base_tab.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download
M ui/gfx/canvas.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M ui/gfx/canvas_skia.cc View 1 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Alexei Svitkine (slow)
Hey Xiaomei and Scott, This fixes the issue for the case of tab titles, but ...
8 years, 5 months ago (2012-06-28 21:25:13 UTC) #1
sky
If you did promote this function are there cases where it could do the wrong ...
8 years, 5 months ago (2012-06-28 22:18:29 UTC) #2
xji
On 2012/06/28 22:18:29, sky wrote: > If you did promote this function are there cases ...
8 years, 5 months ago (2012-06-29 00:59:13 UTC) #3
Alexei Svitkine (slow)
On Thu, Jun 28, 2012 at 6:18 PM, <sky@chromium.org> wrote: > If you did promote ...
8 years, 5 months ago (2012-06-29 14:46:26 UTC) #4
Alexei Svitkine (slow)
> Is fading and truncation always consistent? which means they are either on > left ...
8 years, 5 months ago (2012-06-29 14:51:33 UTC) #5
xji
On 2012/06/29 14:51:33, Alexei Svitkine wrote: > > Is fading and truncation always consistent? which ...
8 years, 5 months ago (2012-06-29 18:11:18 UTC) #6
xji
http://codereview.chromium.org/10701024/diff/1/chrome/browser/ui/views/tabs/base_tab.cc File chrome/browser/ui/views/tabs/base_tab.cc (right): http://codereview.chromium.org/10701024/diff/1/chrome/browser/ui/views/tabs/base_tab.cc#newcode555 chrome/browser/ui/views/tabs/base_tab.cc:555: } Since RenderText has both directionality and horizotal aligment ...
8 years, 5 months ago (2012-06-29 18:11:24 UTC) #7
Alexei Svitkine (slow)
On Fri, Jun 29, 2012 at 2:11 PM, <xji@chromium.org> wrote: > On 2012/06/29 14:51:33, Alexei ...
8 years, 5 months ago (2012-06-29 18:33:24 UTC) #8
xji
> > > > But I did just checked Window's canary build on a LTR ...
8 years, 5 months ago (2012-06-29 19:15:52 UTC) #9
Alexei Svitkine (slow)
> If I said that we want LTR text to be left-aligned in RTL UI, ...
8 years, 5 months ago (2012-06-29 20:01:04 UTC) #10
Alexei Svitkine (slow)
I've updated the CL and TEST= instructions.
8 years, 5 months ago (2012-06-29 20:34:38 UTC) #11
xji
On 2012/06/29 20:34:38, Alexei Svitkine wrote: > I've updated the CL and TEST= instructions. the ...
8 years, 5 months ago (2012-06-29 21:07:53 UTC) #12
Alexei Svitkine (slow)
On 2012/06/29 21:07:53, xji wrote: > On 2012/06/29 20:34:38, Alexei Svitkine wrote: > > I've ...
8 years, 5 months ago (2012-06-29 21:15:20 UTC) #13
xji
On 2012/06/29 21:15:20, Alexei Svitkine wrote: > On 2012/06/29 21:07:53, xji wrote: > > On ...
8 years, 5 months ago (2012-06-29 23:51:18 UTC) #14
Alexei Svitkine (slow)
On 2012/06/29 23:51:18, xji wrote: > On 2012/06/29 21:15:20, Alexei Svitkine wrote: > > On ...
8 years, 5 months ago (2012-07-03 19:18:01 UTC) #15
Alexei Svitkine (slow)
xji@ is already OO. Swapping reviewers to see if I can get an LGTM before ...
8 years, 5 months ago (2012-07-03 21:11:37 UTC) #16
msw
LGTM
8 years, 5 months ago (2012-07-03 21:15:18 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/10701024/8001
8 years, 5 months ago (2012-07-03 21:23:06 UTC) #18
commit-bot: I haz the power
Try job failure for 10701024-8001 (retry) (retry) (retry) on linux_rel for step "interactive_ui_tests". It's a ...
8 years, 5 months ago (2012-07-03 22:35:55 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/10701024/8001
8 years, 5 months ago (2012-07-04 03:23:15 UTC) #20
commit-bot: I haz the power
8 years, 5 months ago (2012-07-04 04:40:40 UTC) #21
Change committed as 145432

Powered by Google App Engine
This is Rietveld 408576698