Chromium Code Reviews
DescriptionCustomButton: 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*) #
Messages
Total messages: 22 (10 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||