| 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/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1484 new views::BoxLayout(views::BoxLayout::kVertical, | 1484 new views::BoxLayout(views::BoxLayout::kVertical, |
| 1485 kLegalDocPadding, | 1485 kLegalDocPadding, |
| 1486 kLegalDocPadding, | 1486 kLegalDocPadding, |
| 1487 0)); | 1487 0)); |
| 1488 footnote_view_->set_border( | 1488 footnote_view_->set_border( |
| 1489 views::Border::CreateSolidSidedBorder(1, 0, 0, 0, kSubtleBorderColor)); | 1489 views::Border::CreateSolidSidedBorder(1, 0, 0, 0, kSubtleBorderColor)); |
| 1490 footnote_view_->set_background( | 1490 footnote_view_->set_background( |
| 1491 views::Background::CreateSolidBackground(kShadingColor)); | 1491 views::Background::CreateSolidBackground(kShadingColor)); |
| 1492 | 1492 |
| 1493 legal_document_view_ = new views::StyledLabel(string16(), this); | 1493 legal_document_view_ = new views::StyledLabel(string16(), this); |
| 1494 legal_document_view_->SetDisplayedOnBackgroundColor(kShadingColor); |
| 1495 |
| 1494 footnote_view_->AddChildView(legal_document_view_); | 1496 footnote_view_->AddChildView(legal_document_view_); |
| 1495 footnote_view_->SetVisible(false); | 1497 footnote_view_->SetVisible(false); |
| 1496 | 1498 |
| 1497 return footnote_view_; | 1499 return footnote_view_; |
| 1498 } | 1500 } |
| 1499 | 1501 |
| 1500 views::View* AutofillDialogViews::CreateOverlayView() { | 1502 views::View* AutofillDialogViews::CreateOverlayView() { |
| 1501 return overlay_view_; | 1503 return overlay_view_; |
| 1502 } | 1504 } |
| 1503 | 1505 |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2211 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 2213 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
| 2212 : section(section), | 2214 : section(section), |
| 2213 container(NULL), | 2215 container(NULL), |
| 2214 manual_input(NULL), | 2216 manual_input(NULL), |
| 2215 suggested_info(NULL), | 2217 suggested_info(NULL), |
| 2216 suggested_button(NULL) {} | 2218 suggested_button(NULL) {} |
| 2217 | 2219 |
| 2218 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 2220 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
| 2219 | 2221 |
| 2220 } // namespace autofill | 2222 } // namespace autofill |
| OLD | NEW |