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

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: 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/view.h
diff --git a/views/view.h b/views/view.h
index 25b6e0f34d7d21390ded808f9f7c471f35cc3ccd..6e31f10084ff2ae71685f683adc9ed9d9625c13f 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(bool enabled);
Ben Goodger (Google) 2011/05/27 16:01:21 I would say don't pass the parameter here. This me
tfarina 2011/05/27 16:25:04 Done.
+
// Transformations -----------------------------------------------------------
// Methods for setting transformations for a view (e.g. rotation, scaling).

Powered by Google App Engine
This is Rietveld 408576698