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

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

Issue 14895004: Fixing autocheckout progress bar repaint bug. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 6db9e0b173f39db433faea5dd362ae5fa62ac15b..bb2881a2769ef99ed36bb61c57178cbfd075d687 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -637,9 +637,20 @@ void AutofillDialogViews::SuggestionView::ShowTextfield(
label_->set_border(NULL);
}
+// AutofilDialogViews::ButtonStripView ---------------------------------
+
+AutofillDialogViews::ButtonStripView::ButtonStripView() {}
+AutofillDialogViews::ButtonStripView::~ButtonStripView() {}
+
+void AutofillDialogViews::ButtonStripView::ChildVisibilityChanged(
+ views::View* child) {
+ PreferredSizeChanged();
+}
+
// AutofilDialogViews::AutocheckoutProgressBar ---------------------------------
AutofillDialogViews::AutocheckoutProgressBar::AutocheckoutProgressBar() {}
+AutofillDialogViews::AutocheckoutProgressBar::~AutocheckoutProgressBar() {}
gfx::Size AutofillDialogViews::AutocheckoutProgressBar::GetPreferredSize() {
return gfx::Size(kAutocheckoutProgressBarWidth,
@@ -1096,7 +1107,7 @@ void AutofillDialogViews::StyledLabelLinkClicked(const ui::Range& range,
}
void AutofillDialogViews::InitChildViews() {
- button_strip_extra_view_ = new views::View();
+ button_strip_extra_view_ = new ButtonStripView();
button_strip_extra_view_->SetLayoutManager(
new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0, 0));

Powered by Google App Engine
This is Rietveld 408576698