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

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: fix win, move OnEnabledChanged to protected section, add comment 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..679841ac84f35d44fbde2825a0213b50df0c8089 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() {
+ Button::OnEnabledChanged();
if (native_wrapper_)
native_wrapper_->UpdateEnabled();
}

Powered by Google App Engine
This is Rietveld 408576698