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

Unified Diff: ui/views/controls/button/custom_button.cc

Issue 2396133005: [ash-md] Animates ToggleButton highlight to move it in sync with the thumb (Closed)
Patch Set: [ash-md] Animates ToggleButton highlight to move it in sync with the thumb (better destruction sequ… Created 4 years, 2 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: 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 5bcd0c907fc2107e111dbfafed4adb36e43843ef..63092b9b8b3bf32ba476981eb37a8e138c5e8b1f 100644
--- a/ui/views/controls/button/custom_button.cc
+++ b/ui/views/controls/button/custom_button.cc
@@ -18,6 +18,7 @@
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/button/menu_button.h"
#include "ui/views/controls/button/radio_button.h"
+#include "ui/views/controls/button/toggle_button.h"
#include "ui/views/widget/widget.h"
#if defined(USE_AURA)
@@ -54,6 +55,7 @@ CustomButton* CustomButton::AsCustomButton(views::View* view) {
!strcmp(classname, ImageButton::kViewClassName) ||
!strcmp(classname, LabelButton::kViewClassName) ||
!strcmp(classname, RadioButton::kViewClassName) ||
+ !strcmp(classname, ToggleButton::kViewClassName) ||
!strcmp(classname, MenuButton::kViewClassName)) {
return static_cast<CustomButton*>(view);
}

Powered by Google App Engine
This is Rietveld 408576698