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

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

Issue 8909002: views: Convert IsEnabled() to just enabled() since it's just a simple accessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « ui/views/controls/button/custom_button.cc ('k') | ui/views/controls/combobox/native_combobox_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/text_button.cc
diff --git a/ui/views/controls/button/text_button.cc b/ui/views/controls/button/text_button.cc
index 6e2816eed7447f78561cea8db58432170b6e69b6..46b37b3d31fa300fe709c453a8dbffd66c68f9c6 100644
--- a/ui/views/controls/button/text_button.cc
+++ b/ui/views/controls/button/text_button.cc
@@ -411,7 +411,7 @@ const ui::Animation* TextButtonBase::GetAnimation() const {
}
void TextButtonBase::UpdateColor() {
- color_ = View::IsEnabled() ? color_enabled_ : color_disabled_;
+ color_ = enabled() ? color_enabled_ : color_disabled_;
}
void TextButtonBase::UpdateTextSize() {
« no previous file with comments | « ui/views/controls/button/custom_button.cc ('k') | ui/views/controls/combobox/native_combobox_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698