OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/payments/payment_request_views_util.h" | 5 #include "chrome/browser/ui/views/payments/payment_request_views_util.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 return container; | 231 return container; |
232 } | 232 } |
233 | 233 |
234 std::unique_ptr<views::Border> CreatePaymentRequestRowBorder() { | 234 std::unique_ptr<views::Border> CreatePaymentRequestRowBorder() { |
235 return views::CreateBorderPainter( | 235 return views::CreateBorderPainter( |
236 base::MakeUnique<PaymentRequestRowBorderPainter>(), | 236 base::MakeUnique<PaymentRequestRowBorderPainter>(), |
237 gfx::Insets()); | 237 gfx::Insets()); |
238 } | 238 } |
239 | 239 |
| 240 std::unique_ptr<views::Label> CreateBoldLabel(const base::string16& text) { |
| 241 std::unique_ptr<views::Label> label = base::MakeUnique<views::Label>(text); |
| 242 |
| 243 label->SetFontList( |
| 244 label->font_list().DeriveWithWeight(gfx::Font::Weight::BOLD)); |
| 245 |
| 246 return label; |
| 247 } |
| 248 |
240 } // namespace payments | 249 } // namespace payments |
OLD | NEW |