Chromium Code Reviews
Descriptionviews: add selection change animation to TabbedPane
The Harmony spec calls for these to follow the Paper Tab animations,
which are as follows:
1) Over 0.15s, the selection bar grows to encompass the new selection,
growing along the cubic bezier curve (0.4, 0.0, 1.0, 1.0), which matches
gfx::Tween::FAST_OUT_LINEAR_IN;
2) Over 0.18s, the selection bar shrinks to encompass only the new
selection, shrinking along the cubic bezier curve (0.0, 0.0, 0.2, 1.0),
which matches gfx::Tween::LINEAR_OUT_SLOW_IN.
This change:
1) Removes border painting from MdTab altogether;
2) Changes MdTabStrip to paint the current selection bar;
3) Introduces TabStrip::OnSelectedTabChanged() as a callback for
TabStrip to learn when the selected Tab has changed;
4) Adds expand and contract animations to MdTabStrip;
5) Grows and shrinks the selection bar in accordance with those
animations.
BUG=635176
Committed: https://crrev.com/8002657452fc6b81b73ce8c77713b938080c9a2d
Cr-Commit-Position: refs/heads/master@{#425095}
Patch Set 1 #Patch Set 2 : git cl format #
Total comments: 6
Patch Set 3 : nits fixed #Messages
Total messages: 15 (7 generated)
|