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

Unified Diff: ui/views/controls/native_control.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/menu/menu_item_view_win.cc ('k') | ui/views/controls/native_control_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/native_control.cc
diff --git a/ui/views/controls/native_control.cc b/ui/views/controls/native_control.cc
index e09c72abf21cb3c0cf34ec7847b13bbf74058391..11604aa2257243c630490082752950107a1fdc8f 100644
--- a/ui/views/controls/native_control.cc
+++ b/ui/views/controls/native_control.cc
@@ -198,8 +198,8 @@ void NativeControl::ValidateNativeControl() {
container_ = new NativeControlContainer(this);
container_->Init();
hwnd_view_->Attach(*container_);
- if (!IsEnabled())
- EnableWindow(GetNativeControlHWND(), IsEnabled());
+ if (!enabled())
+ EnableWindow(GetNativeControlHWND(), enabled());
// This message ensures that the focus border is shown.
::SendMessage(container_->GetControl(),
@@ -314,7 +314,7 @@ void NativeControl::SetVisible(bool f) {
void NativeControl::OnEnabledChanged() {
View::OnEnabledChanged();
if (GetNativeControlHWND())
- EnableWindow(GetNativeControlHWND(), IsEnabled());
+ EnableWindow(GetNativeControlHWND(), enabled());
}
void NativeControl::OnPaint(gfx::Canvas* canvas) {
« no previous file with comments | « ui/views/controls/menu/menu_item_view_win.cc ('k') | ui/views/controls/native_control_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698