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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 15061006: views: Switch Checkbox over to LabelButton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes per review Created 7 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: chrome/browser/ui/views/autofill/autofill_dialog_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
index 0e086591a3bb1338523a94508a3cf338a2bd6fea..988f27f8e3f0573a2a1baea777de84cafc235d6b 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -513,10 +513,12 @@ void AutofillDialogViews::NotificationArea::SetNotifications(
if (!notification.interactive())
checkbox->SetState(views::Button::STATE_DISABLED);
checkbox->SetText(notification.display_text());
- checkbox->SetMultiLine(true);
- checkbox->set_alignment(views::TextButtonBase::ALIGN_LEFT);
- checkbox->SetEnabledColor(notification.GetTextColor());
- checkbox->SetHoverColor(notification.GetTextColor());
+ checkbox->SetTextMultiLine(true);
+ checkbox->SetHorizontalAlignment(gfx::ALIGN_LEFT);
+ checkbox->SetTextColor(views::Button::STATE_NORMAL,
+ notification.GetTextColor());
+ checkbox->SetTextColor(views::Button::STATE_HOVERED,
+ notification.GetTextColor());
checkbox->SetChecked(notification.checked());
checkbox->set_listener(this);
view.reset(checkbox.release());

Powered by Google App Engine
This is Rietveld 408576698