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

Unified Diff: views/controls/native_control_win.cc

Issue 6976048: views: Add OnEnabledChanged() method to View class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove bool parameter 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_win.cc
diff --git a/views/controls/native_control_win.cc b/views/controls/native_control_win.cc
index cd1ac0b19ad758be355247613c261256d95ce1e5..635576bbef4ab148abde3bc888c9d0d882976c41 100644
--- a/views/controls/native_control_win.cc
+++ b/views/controls/native_control_win.cc
@@ -58,12 +58,10 @@ bool NativeControlWin::ProcessMessage(UINT message,
////////////////////////////////////////////////////////////////////////////////
// NativeControlWin, View overrides:
-void NativeControlWin::SetEnabled(bool enabled) {
- if (IsEnabled() != enabled) {
- View::SetEnabled(enabled);
- if (native_view())
- EnableWindow(native_view(), IsEnabled());
- }
+void NativeControlWin::OnEnabledChanged() {
+ View::OnEnabledChanged();
+ if (native_view())
+ EnableWindow(native_view(), View::IsEnabled());
}
void NativeControlWin::ViewHierarchyChanged(bool is_add, View* parent,
« no previous file with comments | « views/controls/native_control_win.h ('k') | views/controls/progress_bar.h » ('j') | views/view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698