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

Unified Diff: views/controls/button/checkbox.cc

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/controls/button/checkbox.cc
diff --git a/views/controls/button/checkbox.cc b/views/controls/button/checkbox.cc
index 71116cdd811f1c02bab97a029ef209b10136b350..753ac000be4efd0f14219c209fcffd338ec8b6f1 100644
--- a/views/controls/button/checkbox.cc
+++ b/views/controls/button/checkbox.cc
@@ -90,7 +90,7 @@ int Checkbox::GetHeightForWidth(int w) {
return label_->GetHeightForWidth(std::max(prefsize.height(), w - width));
}
-void Checkbox::SetEnabled(bool enabled) {
+void Checkbox::OnEnabledChanged(bool enabled) {
NativeButtonBase::SetEnabled(enabled);
Ben Goodger (Google) 2011/05/27 16:01:21 This is going to recurse infinitely.
tfarina 2011/05/27 16:25:04 Done.
if (label_)
label_->SetEnabled(enabled);

Powered by Google App Engine
This is Rietveld 408576698