Index: ui/views/controls/button/custom_button.cc |
diff --git a/ui/views/controls/button/custom_button.cc b/ui/views/controls/button/custom_button.cc |
index a3fd6ce370b84ad0cc24be004bbaaf463c054065..cdf6a6d620cc2e3373c983c16ac98b4d4dd75c3d 100644 |
--- a/ui/views/controls/button/custom_button.cc |
+++ b/ui/views/controls/button/custom_button.cc |
@@ -100,8 +100,9 @@ void CustomButton::SetState(ButtonState state) { |
} |
} |
+ ButtonState old_state = state_; |
state_ = state; |
- StateChanged(); |
+ StateChanged(old_state); |
SchedulePaint(); |
} |
@@ -437,8 +438,7 @@ CustomButton::CustomButton(ButtonListener* listener) |
hover_animation_.SetSlideDuration(kHoverFadeDurationMs); |
} |
-void CustomButton::StateChanged() { |
-} |
+void CustomButton::StateChanged(ButtonState old_state) {} |
bool CustomButton::IsTriggerableEvent(const ui::Event& event) { |
return event.type() == ui::ET_GESTURE_TAP_DOWN || |