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

Unified Diff: views/controls/button/native_button.cc

Issue 7104095: Disable animation for buttons on hover (r88176 and r88149). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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: views/controls/button/native_button.cc
diff --git a/views/controls/button/native_button.cc b/views/controls/button/native_button.cc
index 7686b0a11e4988e89e5dc2497f3301ea8329dcd1..5c55347aaf433326c32fe630eddd286c8e384708 100644
--- a/views/controls/button/native_button.cc
+++ b/views/controls/button/native_button.cc
@@ -248,6 +248,7 @@ NativeButton::NativeButton(ButtonListener* listener, const std::wstring& label)
: TextButton(listener, label), is_default_(false) {
set_alignment(TextButton::ALIGN_CENTER);
static_cast<TextButtonBorder*>(border())->copy_normal_set_to_hot_set();
+ set_animate_on_state_change(false);
set_focusable(true);
}
« 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