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

Unified Diff: ui/views/controls/native_control_win.cc

Issue 8909002: views: Convert IsEnabled() to just enabled() since it's just a simple accessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« no previous file with comments | « ui/views/controls/native_control_gtk.cc ('k') | ui/views/controls/progress_bar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/native_control_win.cc
diff --git a/ui/views/controls/native_control_win.cc b/ui/views/controls/native_control_win.cc
index 2b71964d7e2fbe2ba9cce31a8531566a45b53ed1..041b85a058d6d28574a06e4bd078c15c49a5ec22 100644
--- a/ui/views/controls/native_control_win.cc
+++ b/ui/views/controls/native_control_win.cc
@@ -62,7 +62,7 @@ bool NativeControlWin::ProcessMessage(UINT message,
void NativeControlWin::OnEnabledChanged() {
View::OnEnabledChanged();
if (native_view())
- EnableWindow(native_view(), IsEnabled());
+ EnableWindow(native_view(), enabled());
}
void NativeControlWin::ViewHierarchyChanged(bool is_add, View* parent,
@@ -146,7 +146,7 @@ void NativeControlWin::NativeControlCreated(HWND native_control) {
// native_view() is now valid.
// Update the newly created HWND with any resident enabled state.
- EnableWindow(native_view(), IsEnabled());
+ EnableWindow(native_view(), enabled());
// This message ensures that the focus border is shown.
SendMessage(native_view(), WM_CHANGEUISTATE,
« no previous file with comments | « ui/views/controls/native_control_gtk.cc ('k') | ui/views/controls/progress_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698