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

Unified Diff: views/controls/link.cc

Issue 6976048: views: Add OnEnabledChanged() method to View class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win, move OnEnabledChanged to protected section, add comment 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/controls/link.cc
diff --git a/views/controls/link.cc b/views/controls/link.cc
index 3c8bceac650e07cf51334554c89ba9c8ed10ccc9..d6c85c822612670939861bf9c79937095ecc917a 100644
--- a/views/controls/link.cc
+++ b/views/controls/link.cc
@@ -88,12 +88,9 @@ void Link::Init() {
Link::~Link() {
}
-void Link::SetEnabled(bool flag) {
- if (flag != enabled_) {
- enabled_ = flag;
- ValidateStyle();
- SchedulePaint();
- }
+void Link::OnEnabledChanged() {
+ ValidateStyle();
+ SchedulePaint();
}
std::string Link::GetClassName() const {

Powered by Google App Engine
This is Rietveld 408576698