| Index: views/controls/button/custom_button.cc
|
| diff --git a/views/controls/button/custom_button.cc b/views/controls/button/custom_button.cc
|
| index f9a58f639d20e2d0171d82055d4dd3395121ceee..c7eadca156c5a1ca93dc58c94f5a656eee7b2751 100644
|
| --- a/views/controls/button/custom_button.cc
|
| +++ b/views/controls/button/custom_button.cc
|
| @@ -219,6 +219,20 @@ void CustomButton::ViewHierarchyChanged(bool is_add, View *parent,
|
| SetState(BS_NORMAL);
|
| }
|
|
|
| +void CustomButton::SetHotTracked(bool flag) {
|
| + if (state_ != BS_DISABLED)
|
| + SetState(flag ? BS_HOT : BS_NORMAL);
|
| +}
|
| +
|
| +bool CustomButton::IsHotTracked() const {
|
| + return state_ == BS_HOT;
|
| +}
|
| +
|
| +void CustomButton::WillLoseFocus() {
|
| + if (IsHotTracked())
|
| + SetState(BS_NORMAL);
|
| +}
|
| +
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // CustomButton, AnimationDelegate implementation:
|
|
|
|
|