| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 base::MakeUnique<views::Label>(email); | 224 base::MakeUnique<views::Label>(email); |
| 225 container->AddChildView(label.release()); | 225 container->AddChildView(label.release()); |
| 226 } | 226 } |
| 227 } | 227 } |
| 228 | 228 |
| 229 // TODO(anthonyvd): add the error label | 229 // TODO(anthonyvd): add the error label |
| 230 | 230 |
| 231 return container; | 231 return container; |
| 232 } | 232 } |
| 233 | 233 |
| 234 // Creates a views::Border object that can paint the gray horizontal ruler used | |
| 235 // as a separator between items in the Payment Request dialog. | |
| 236 std::unique_ptr<views::Border> CreatePaymentRequestRowBorder() { | 234 std::unique_ptr<views::Border> CreatePaymentRequestRowBorder() { |
| 237 return views::CreateBorderPainter( | 235 return views::CreateBorderPainter( |
| 238 base::MakeUnique<PaymentRequestRowBorderPainter>(), | 236 base::MakeUnique<PaymentRequestRowBorderPainter>(), |
| 239 gfx::Insets()); | 237 gfx::Insets()); |
| 240 } | 238 } |
| 241 | 239 |
| 242 } // namespace payments | 240 } // namespace payments |
| OLD | NEW |