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

Unified Diff: views/view.h

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
« no previous file with comments | « views/controls/textfield/textfield.cc ('k') | views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.h
diff --git a/views/view.h b/views/view.h
index 25b6e0f34d7d21390ded808f9f7c471f35cc3ccd..12e39d8e5f05db0be25162944d95fe41d7244ff6 100644
--- a/views/view.h
+++ b/views/view.h
@@ -317,11 +317,13 @@ class View : public AcceleratorTarget {
// Set whether this view is enabled. A disabled view does not receive keyboard
// or mouse inputs. If flag differs from the current value, SchedulePaint is
// invoked.
- virtual void SetEnabled(bool flag);
+ void SetEnabled(bool enabled);
// Returns whether the view is enabled.
virtual bool IsEnabled() const;
+ virtual void OnEnabledChanged();
Ben Goodger (Google) 2011/05/27 16:30:15 This method should be in the protected: section.
tfarina 2011/05/27 16:47:54 Done.
+
// Transformations -----------------------------------------------------------
// Methods for setting transformations for a view (e.g. rotation, scaling).
« no previous file with comments | « views/controls/textfield/textfield.cc ('k') | views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698