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

Unified Diff: ash/common/system/tray/tray_popup_header_button.cc

Issue 2680643002: Add old_state parameter to CustomButton::StateChanged (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/common/system/tray/tray_popup_header_button.cc
diff --git a/ash/common/system/tray/tray_popup_header_button.cc b/ash/common/system/tray/tray_popup_header_button.cc
index 576ec92e3e73d70329387d554b9fba8c3a99cdd9..a945311a940a181ceefc866d4a9c81055ed778e4 100644
--- a/ash/common/system/tray/tray_popup_header_button.cc
+++ b/ash/common/system/tray/tray_popup_header_button.cc
@@ -61,7 +61,7 @@ gfx::Size TrayPopupHeaderButton::GetPreferredSize() const {
return gfx::Size(size, size);
}
-void TrayPopupHeaderButton::StateChanged() {
+void TrayPopupHeaderButton::StateChanged(ButtonState old_state) {
if (state() == STATE_HOVERED || state() == STATE_PRESSED) {
set_background(views::Background::CreateSolidBackground(
kTrayPopupHoverBackgroundColor));
« no previous file with comments | « ash/common/system/tray/tray_popup_header_button.h ('k') | chrome/browser/ui/views/payments/payment_request_row_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698