DescriptionUse labels to display views tab titles.
Add a Label view to Tab for displaying the title.
Remove Tab::PaintTitle, bounds and font members.
Remove unnecessary Tab::Get[Title|Icon]Bounds helpers.
Update the text on Tab::SetData, not during paint.
Use gfx::DirectionalityMode, remove the Label enum.
Add gfx::ALIGN_TO_HEAD to gfx::HorizontalAlignment.
Add Label::GetHorizontalAlignment for ALIGN_TO_HEAD.
Always flip left/right in Label::SetHorizontalAlignment.
Have Tab and MessageBoxView use ALIGN_TO_HEAD.
Update comments and tests, related minor cleanup.
TODO: Make Label cache RenderText objects.
TODO: Make RenderText support ALIGN_TO_HEAD.
BUG=240037
TEST=No visible Views tab title changes.
R=sky@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276450
Patch Set 1 #Patch Set 2 : Render Views tab titles with labels. #Patch Set 3 : Restore title bounds mirroring for RTL. #
Total comments: 4
Patch Set 4 : Address comments; update tests. #
Messages
Total messages: 8 (0 generated)
|