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

Issue 2412163003: views: add selection change animation to TabbedPane (Closed)

Created:
4 years, 2 months ago by Elly Fong-Jones
Modified:
4 years, 2 months ago
Reviewers:
msw, sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

views: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -37 lines) Patch
M ui/views/controls/tabbed_pane/tabbed_pane.cc View 1 2 9 chunks +146 lines, -37 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
Elly Fong-Jones
msw: ptal? :)
4 years, 2 months ago (2016-10-13 14:28:52 UTC) #3
msw
nice documentation; lgtm with nits. https://codereview.chromium.org/2412163003/diff/20001/ui/views/controls/tabbed_pane/tabbed_pane.cc File ui/views/controls/tabbed_pane/tabbed_pane.cc (right): https://codereview.chromium.org/2412163003/diff/20001/ui/views/controls/tabbed_pane/tabbed_pane.cc#newcode397 ui/views/controls/tabbed_pane/tabbed_pane.cc:397: // These durations are ...
4 years, 2 months ago (2016-10-13 17:08:26 UTC) #4
Elly Fong-Jones
https://codereview.chromium.org/2412163003/diff/20001/ui/views/controls/tabbed_pane/tabbed_pane.cc File ui/views/controls/tabbed_pane/tabbed_pane.cc (right): https://codereview.chromium.org/2412163003/diff/20001/ui/views/controls/tabbed_pane/tabbed_pane.cc#newcode397 ui/views/controls/tabbed_pane/tabbed_pane.cc:397: // These durations are ripped off from the Paper ...
4 years, 2 months ago (2016-10-13 17:12:50 UTC) #5
Elly Fong-Jones
sky: ptal? :)
4 years, 2 months ago (2016-10-13 17:13:04 UTC) #7
sky
As Mike reviews this already, Rubber stamp LGTM
4 years, 2 months ago (2016-10-13 17:30:45 UTC) #8
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/2412163003/40001
4 years, 2 months ago (2016-10-13 17:34:20 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-13 18:25:02 UTC) #13
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 18:28:14 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8002657452fc6b81b73ce8c77713b938080c9a2d
Cr-Commit-Position: refs/heads/master@{#425095}

Powered by Google App Engine
This is Rietveld 408576698