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

Issue 2406323002: CustomButton: restrict animation repaints to buttons that actually animate (Closed)

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

Description

CustomButton: restrict animation repaints to buttons that actually animate This change: 1) Adds CustomButton::animates_hover_ and accessors, which governs whether a particular button's paint methods depend on animation state; 2) Adds calls to set_animates_hover() in all subclasses that depend on the animation state; 3) Adds support in MdTextButton for a hovered state and hover animation. BUG=650115 Committed: https://crrev.com/ac51b6a1f6c40b0a24a784bc1835f60fb51e8805 Cr-Commit-Position: refs/heads/master@{#425661}

Patch Set 1 #

Patch Set 2 : CustomButton: restrict animation repaints to buttons that actually animate #

Total comments: 1

Patch Set 3 : don't start anims #

Patch Set 4 : don't use bool(T*) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -17 lines) Patch
M ash/common/frame/caption_buttons/frame_caption_button.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/button/custom_button.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M ui/views/controls/button/custom_button.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/controls/button/image_button.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/controls/button/md_text_button.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/controls/button/md_text_button.cc View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M ui/views/examples/button_example.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/examples/button_example.cc View 1 2 2 chunks +21 lines, -14 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
Elly Fong-Jones
sky: ptal? :)
4 years, 2 months ago (2016-10-11 14:58:31 UTC) #3
sky
https://codereview.chromium.org/2406323002/diff/20001/ui/views/controls/button/custom_button.h File ui/views/controls/button/custom_button.h (right): https://codereview.chromium.org/2406323002/diff/20001/ui/views/controls/button/custom_button.h#newcode197 ui/views/controls/button/custom_button.h:197: // Whether this button has a hover effect. If ...
4 years, 2 months ago (2016-10-11 19:17:45 UTC) #4
sky
LGTM
4 years, 2 months ago (2016-10-12 21:48:16 UTC) #5
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/2406323002/20001
4 years, 2 months ago (2016-10-12 21:49:47 UTC) #7
sky
Actually, not lgtm. This is still weird in that the animation is still ticking even ...
4 years, 2 months ago (2016-10-12 21:53:02 UTC) #9
Elly Fong-Jones
On 2016/10/12 21:53:02, sky wrote: > Actually, not lgtm. This is still weird in that ...
4 years, 2 months ago (2016-10-13 12:03:04 UTC) #10
sky
LGTM
4 years, 2 months ago (2016-10-13 17:45:41 UTC) #11
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/2406323002/40001
4 years, 2 months ago (2016-10-14 15:06:37 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/311862)
4 years, 2 months ago (2016-10-14 15:43:36 UTC) #15
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/2406323002/60001
4 years, 2 months ago (2016-10-17 11:30:44 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-17 12:21:09 UTC) #20
commit-bot: I haz the power
4 years, 2 months ago (2016-10-17 12:22:54 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ac51b6a1f6c40b0a24a784bc1835f60fb51e8805
Cr-Commit-Position: refs/heads/master@{#425661}

Powered by Google App Engine
This is Rietveld 408576698