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

Unified Diff: views/controls/native_control.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/native_control.cc
diff --git a/views/controls/native_control.cc b/views/controls/native_control.cc
index 83a67e53a0eb24418b26ab629b3198991e303514..6d0ec213bf8c56b0608c126779fe5a40ebe6a2ee 100644
--- a/views/controls/native_control.cc
+++ b/views/controls/native_control.cc
@@ -312,12 +312,11 @@ void NativeControl::SetVisible(bool f) {
}
}
-void NativeControl::SetEnabled(bool enabled) {
+void NativeControl::OnEnabledChanged(bool enabled) {
if (enabled_ != enabled) {
View::SetEnabled(enabled);
Ben Goodger (Google) 2011/05/27 16:01:21 Infinite recursion.
tfarina 2011/05/27 16:25:04 Done.
- if (GetNativeControlHWND()) {
+ if (GetNativeControlHWND())
EnableWindow(GetNativeControlHWND(), enabled_);
- }
}
}

Powered by Google App Engine
This is Rietveld 408576698