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

Unified Diff: ui/views/view.h

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/textfield/textfield.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index d6e6ca9f48770df4c934eddeeee87aac9c62ea91..d03a1fc082b67822dc6edb2269e4d4aae37252bf 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -258,7 +258,7 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
void SetEnabled(bool enabled);
// Returns whether the view is enabled.
- virtual bool IsEnabled() const;
+ bool enabled() const { return enabled_; }
// This indicates that the view completely fills its bounds in an opaque
// color. This doesn't affect compositing but is a hint to the compositor to
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698