| 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 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1387 new views::BoxLayout(views::BoxLayout::kVertical, | 1387 new views::BoxLayout(views::BoxLayout::kVertical, |
| 1388 kLegalDocPadding, | 1388 kLegalDocPadding, |
| 1389 kLegalDocPadding, | 1389 kLegalDocPadding, |
| 1390 0)); | 1390 0)); |
| 1391 footnote_view_->set_border( | 1391 footnote_view_->set_border( |
| 1392 views::Border::CreateSolidSidedBorder(1, 0, 0, 0, kSubtleBorderColor)); | 1392 views::Border::CreateSolidSidedBorder(1, 0, 0, 0, kSubtleBorderColor)); |
| 1393 footnote_view_->set_background( | 1393 footnote_view_->set_background( |
| 1394 views::Background::CreateSolidBackground(kShadingColor)); | 1394 views::Background::CreateSolidBackground(kShadingColor)); |
| 1395 | 1395 |
| 1396 legal_document_view_ = new views::StyledLabel(string16(), this); | 1396 legal_document_view_ = new views::StyledLabel(string16(), this); |
| 1397 legal_document_view_->SetBackgroundColor(kShadingColor); |
| 1398 |
| 1397 footnote_view_->AddChildView(legal_document_view_); | 1399 footnote_view_->AddChildView(legal_document_view_); |
| 1398 footnote_view_->SetVisible(false); | 1400 footnote_view_->SetVisible(false); |
| 1399 | 1401 |
| 1400 return footnote_view_; | 1402 return footnote_view_; |
| 1401 } | 1403 } |
| 1402 | 1404 |
| 1403 views::View* AutofillDialogViews::CreateOverlayView() { | 1405 views::View* AutofillDialogViews::CreateOverlayView() { |
| 1404 gfx::Image splash_image = controller_->SplashPageImage(); | 1406 gfx::Image splash_image = controller_->SplashPageImage(); |
| 1405 if (splash_image.IsEmpty()) | 1407 if (splash_image.IsEmpty()) |
| 1406 return NULL; | 1408 return NULL; |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2090 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 2092 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
| 2091 : section(section), | 2093 : section(section), |
| 2092 container(NULL), | 2094 container(NULL), |
| 2093 manual_input(NULL), | 2095 manual_input(NULL), |
| 2094 suggested_info(NULL), | 2096 suggested_info(NULL), |
| 2095 suggested_button(NULL) {} | 2097 suggested_button(NULL) {} |
| 2096 | 2098 |
| 2097 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 2099 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
| 2098 | 2100 |
| 2099 } // namespace autofill | 2101 } // namespace autofill |
| OLD | NEW |