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/location.h" | 10 #include "base/location.h" |
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1251 | 1251 |
1252 // Update legal documents for the account. | 1252 // Update legal documents for the account. |
1253 if (footnote_view_) { | 1253 if (footnote_view_) { |
1254 const base::string16 text = delegate_->LegalDocumentsText(); | 1254 const base::string16 text = delegate_->LegalDocumentsText(); |
1255 legal_document_view_->SetText(text); | 1255 legal_document_view_->SetText(text); |
1256 | 1256 |
1257 if (!text.empty()) { | 1257 if (!text.empty()) { |
1258 const std::vector<gfx::Range>& link_ranges = | 1258 const std::vector<gfx::Range>& link_ranges = |
1259 delegate_->LegalDocumentLinks(); | 1259 delegate_->LegalDocumentLinks(); |
1260 for (size_t i = 0; i < link_ranges.size(); ++i) { | 1260 for (size_t i = 0; i < link_ranges.size(); ++i) { |
1261 legal_document_view_->AddStyleRange( | 1261 views::StyledLabel::RangeStyleInfo link_range_info = |
1262 link_ranges[i], | 1262 views::StyledLabel::RangeStyleInfo::CreateForLink(); |
1263 views::StyledLabel::RangeStyleInfo::CreateForLink()); | 1263 link_range_info.disable_line_wrapping = false; |
| 1264 legal_document_view_->AddStyleRange(link_ranges[i], link_range_info); |
1264 } | 1265 } |
1265 } | 1266 } |
1266 | 1267 |
1267 footnote_view_->SetVisible(!text.empty()); | 1268 footnote_view_->SetVisible(!text.empty()); |
1268 ContentsPreferredSizeChanged(); | 1269 ContentsPreferredSizeChanged(); |
1269 } | 1270 } |
1270 | 1271 |
1271 if (GetWidget()) | 1272 if (GetWidget()) |
1272 GetWidget()->UpdateWindowTitle(); | 1273 GetWidget()->UpdateWindowTitle(); |
1273 } | 1274 } |
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2447 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 2448 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
2448 : section(section), | 2449 : section(section), |
2449 container(NULL), | 2450 container(NULL), |
2450 manual_input(NULL), | 2451 manual_input(NULL), |
2451 suggested_info(NULL), | 2452 suggested_info(NULL), |
2452 suggested_button(NULL) {} | 2453 suggested_button(NULL) {} |
2453 | 2454 |
2454 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 2455 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
2455 | 2456 |
2456 } // namespace autofill | 2457 } // namespace autofill |
OLD | NEW |