Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: chrome/browser/ui/views/payments/payment_request_views_util.cc

Issue 2730123002: [Web Payments] Add inline items to the Order Summary section. (Closed)
Patch Set: Address comments. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698