| 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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 } | 783 } |
| 784 | 784 |
| 785 bool AutofillDialogViews::NotificationArea::HasArrow() { | 785 bool AutofillDialogViews::NotificationArea::HasArrow() { |
| 786 return !notifications_.empty() && notifications_[0].HasArrow() && | 786 return !notifications_.empty() && notifications_[0].HasArrow() && |
| 787 arrow_centering_anchor_.get(); | 787 arrow_centering_anchor_.get(); |
| 788 } | 788 } |
| 789 | 789 |
| 790 // AutofillDialogViews::SectionContainer --------------------------------------- | 790 // AutofillDialogViews::SectionContainer --------------------------------------- |
| 791 | 791 |
| 792 AutofillDialogViews::SectionContainer::SectionContainer( | 792 AutofillDialogViews::SectionContainer::SectionContainer( |
| 793 const base::string16& label, | 793 const SectionLabel& label, |
| 794 views::View* controls, | 794 views::View* controls, |
| 795 views::Button* proxy_button) | 795 views::Button* proxy_button) |
| 796 : proxy_button_(proxy_button), | 796 : proxy_button_(proxy_button), |
| 797 forward_mouse_events_(false) { | 797 forward_mouse_events_(false) { |
| 798 set_notify_enter_exit_on_child(true); | 798 set_notify_enter_exit_on_child(true); |
| 799 | 799 |
| 800 set_border(views::Border::CreateEmptyBorder(kDetailSectionVerticalPadding, | 800 set_border(views::Border::CreateEmptyBorder(kDetailSectionVerticalPadding, |
| 801 kDialogEdgePadding, | 801 kDialogEdgePadding, |
| 802 kDetailSectionVerticalPadding, | 802 kDetailSectionVerticalPadding, |
| 803 kDialogEdgePadding)); | 803 kDialogEdgePadding)); |
| 804 | 804 |
| 805 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); | 805 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); |
| 806 views::Label* label_view = new views::Label( | 806 views::Label* label_view = new views::Label( |
| 807 label, rb.GetFontList(ui::ResourceBundle::BoldFont)); | 807 label.text, rb.GetFontList(label.font)); |
| 808 label_view->SetHorizontalAlignment(gfx::ALIGN_LEFT); | 808 label_view->SetHorizontalAlignment(gfx::ALIGN_LEFT); |
| 809 | 809 |
| 810 views::View* label_bar = new views::View(); | 810 views::View* label_bar = new views::View(); |
| 811 views::GridLayout* label_bar_layout = new views::GridLayout(label_bar); | 811 views::GridLayout* label_bar_layout = new views::GridLayout(label_bar); |
| 812 label_bar->SetLayoutManager(label_bar_layout); | 812 label_bar->SetLayoutManager(label_bar_layout); |
| 813 const int kColumnSetId = 0; | 813 const int kColumnSetId = 0; |
| 814 views::ColumnSet* columns = label_bar_layout->AddColumnSet(kColumnSetId); | 814 views::ColumnSet* columns = label_bar_layout->AddColumnSet(kColumnSetId); |
| 815 columns->AddColumn( | 815 columns->AddColumn( |
| 816 views::GridLayout::LEADING, | 816 views::GridLayout::LEADING, |
| 817 views::GridLayout::LEADING, | 817 views::GridLayout::LEADING, |
| (...skipping 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2516 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 2516 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
| 2517 : section(section), | 2517 : section(section), |
| 2518 container(NULL), | 2518 container(NULL), |
| 2519 manual_input(NULL), | 2519 manual_input(NULL), |
| 2520 suggested_info(NULL), | 2520 suggested_info(NULL), |
| 2521 suggested_button(NULL) {} | 2521 suggested_button(NULL) {} |
| 2522 | 2522 |
| 2523 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 2523 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
| 2524 | 2524 |
| 2525 } // namespace autofill | 2525 } // namespace autofill |
| OLD | NEW |