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

Unified Diff: views/controls/button/native_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/native_button.cc
diff --git a/views/controls/button/native_button.cc b/views/controls/button/native_button.cc
index 0e2c1f5a584e8f581f1370b561dab8651413faeb..2bc9f6e5a8975b46a9b97a172d1ff764742a8bc0 100644
--- a/views/controls/button/native_button.cc
+++ b/views/controls/button/native_button.cc
@@ -164,8 +164,8 @@ void NativeButtonBase::Layout() {
}
}
-void NativeButtonBase::SetEnabled(bool flag) {
- Button::SetEnabled(flag);
+void NativeButtonBase::OnEnabledChanged(bool enabled) {
+ Button::SetEnabled(enabled);
Ben Goodger (Google) 2011/05/27 16:01:21 This is also going to recurse infinitely.
tfarina 2011/05/27 16:25:04 Done.
if (native_wrapper_)
native_wrapper_->UpdateEnabled();
}

Powered by Google App Engine
This is Rietveld 408576698