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

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

Issue 6976048: views: Add OnEnabledChanged() method to View class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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: views/controls/button/text_button.cc
diff --git a/views/controls/button/text_button.cc b/views/controls/button/text_button.cc
index e72deb3b328d881fcfdd6a4b5f44377f3fc95c1a..69c33a755d6e39c0902ad524fdf0823a1504b74e 100644
--- a/views/controls/button/text_button.cc
+++ b/views/controls/button/text_button.cc
@@ -560,7 +560,7 @@ gfx::Size TextButtonBase::GetMinimumSize() {
return max_text_size_;
}
-void TextButtonBase::SetEnabled(bool enabled) {
+void TextButtonBase::OnEnabledChanged(bool enabled) {
if (enabled != IsEnabled()) {
CustomButton::SetEnabled(enabled);
Ben Goodger (Google) 2011/05/27 16:01:21 Infinite recursion.
tfarina 2011/05/27 16:25:04 Done.
}

Powered by Google App Engine
This is Rietveld 408576698