| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/save_card_bubble_views.h" | 5 #include "chrome/browser/ui/views/autofill/save_card_bubble_views.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "build/build_config.h" |
| 8 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | 11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
| 9 #include "chrome/browser/ui/autofill/save_card_bubble_controller.h" | 12 #include "chrome/browser/ui/autofill/save_card_bubble_controller.h" |
| 10 #include "grit/components_strings.h" | 13 #include "grit/components_strings.h" |
| 11 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
| 12 #include "ui/views/bubble/bubble_frame_view.h" | 15 #include "ui/views/bubble/bubble_frame_view.h" |
| 13 #include "ui/views/controls/button/blue_button.h" | 16 #include "ui/views/controls/button/blue_button.h" |
| 14 #include "ui/views/controls/button/label_button.h" | 17 #include "ui/views/controls/button/label_button.h" |
| 15 #include "ui/views/controls/label.h" | 18 #include "ui/views/controls/label.h" |
| 16 #include "ui/views/controls/link.h" | 19 #include "ui/views/controls/link.h" |
| 17 #include "ui/views/controls/styled_label.h" | 20 #include "ui/views/controls/styled_label.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 void SaveCardBubbleViews::Init() { | 240 void SaveCardBubbleViews::Init() { |
| 238 SetLayoutManager(new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 0)); | 241 SetLayoutManager(new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 0)); |
| 239 AddChildView(CreateMainContentView().release()); | 242 AddChildView(CreateMainContentView().release()); |
| 240 if (!controller_->GetLegalMessageLines().empty()) | 243 if (!controller_->GetLegalMessageLines().empty()) |
| 241 AddChildView(CreateFootnoteView().release()); | 244 AddChildView(CreateFootnoteView().release()); |
| 242 | 245 |
| 243 set_margins(gfx::Insets(1, 0, 1, 0)); | 246 set_margins(gfx::Insets(1, 0, 1, 0)); |
| 244 } | 247 } |
| 245 | 248 |
| 246 } // namespace autofill | 249 } // namespace autofill |
| OLD | NEW |