| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h" | 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 | 572 |
| 573 void AutofillDialogViews::UpdateAccountChooser() { | 573 void AutofillDialogViews::UpdateAccountChooser() { |
| 574 account_chooser_->Update(); | 574 account_chooser_->Update(); |
| 575 | 575 |
| 576 // Update legal documents for the account. | 576 // Update legal documents for the account. |
| 577 if (footnote_view_) { | 577 if (footnote_view_) { |
| 578 footnote_view_->SetText(controller_->LegalDocumentsText()); | 578 footnote_view_->SetText(controller_->LegalDocumentsText()); |
| 579 | 579 |
| 580 std::vector<ui::Range> link_ranges = controller_->LegalDocumentLinks(); | 580 std::vector<ui::Range> link_ranges = controller_->LegalDocumentLinks(); |
| 581 for (size_t i = 0; i < link_ranges.size(); ++i) { | 581 for (size_t i = 0; i < link_ranges.size(); ++i) { |
| 582 footnote_view_->AddLink(link_ranges[i]); | 582 footnote_view_->AddStyleRange( |
| 583 link_ranges[i], |
| 584 views::StyledLabel::RangeStyleInfo::CreateForLink()); |
| 583 } | 585 } |
| 584 | 586 |
| 585 ContentsPreferredSizeChanged(); | 587 ContentsPreferredSizeChanged(); |
| 586 footnote_view_->SchedulePaint(); | 588 footnote_view_->SchedulePaint(); |
| 587 } | 589 } |
| 588 } | 590 } |
| 589 | 591 |
| 590 void AutofillDialogViews::UpdateButtonStrip() { | 592 void AutofillDialogViews::UpdateButtonStrip() { |
| 591 save_in_chrome_checkbox_->SetVisible(!(controller_->AutocheckoutIsRunning() || | 593 save_in_chrome_checkbox_->SetVisible(!(controller_->AutocheckoutIsRunning() || |
| 592 controller_->HadAutocheckoutError())); | 594 controller_->HadAutocheckoutError())); |
| (...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1311 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 1313 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
| 1312 : section(section), | 1314 : section(section), |
| 1313 container(NULL), | 1315 container(NULL), |
| 1314 manual_input(NULL), | 1316 manual_input(NULL), |
| 1315 suggested_info(NULL), | 1317 suggested_info(NULL), |
| 1316 suggested_button(NULL) {} | 1318 suggested_button(NULL) {} |
| 1317 | 1319 |
| 1318 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 1320 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
| 1319 | 1321 |
| 1320 } // namespace autofill | 1322 } // namespace autofill |
| OLD | NEW |