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

Unified Diff: ui/views/controls/combobox/combobox.cc

Issue 2327673003: combobox: don't animate state changes in TransparentButton (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/combobox/combobox.cc
diff --git a/ui/views/controls/combobox/combobox.cc b/ui/views/controls/combobox/combobox.cc
index bb8623a26f631e183c6b62289581e95a1336fc19..12057eb53c8c0f58c103c548b5f51b8500edefe4 100644
--- a/ui/views/controls/combobox/combobox.cc
+++ b/ui/views/controls/combobox/combobox.cc
@@ -119,6 +119,7 @@ class TransparentButton : public CustomButton {
SetAnimationDuration(LabelButton::kHoverAnimationDurationMs);
Evan Stade 2016/09/09 18:37:13 why is this here?
Elly Fong-Jones 2016/09/12 11:46:40 Your guess is as good as mine. It was added in the
Evan Stade 2016/09/12 14:51:17 It seems the line you're adding defeats the purpos
SetFocusBehavior(FocusBehavior::NEVER);
set_notify_action(PlatformStyle::kMenuNotifyActivationAction);
+ set_animate_on_state_change(false);
if (UseMd()) {
SetInkDropMode(PlatformStyle::kUseRipples ? InkDropMode::ON
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698