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

Unified Diff: chrome/browser/ui/views/payments/payment_request_views_util.h

Issue 2899653002: Remove uses of FontList::Derive*(..) in views payments dialogs. (Closed)
Patch Set: self review Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/payments/payment_request_views_util.h
diff --git a/chrome/browser/ui/views/payments/payment_request_views_util.h b/chrome/browser/ui/views/payments/payment_request_views_util.h
index 8c9232100c3d849f0d91403fef3fada4a56e7457..ef9cadf10682634e1a6b0a9d404e67807a2cb3b0 100644
--- a/chrome/browser/ui/views/payments/payment_request_views_util.h
+++ b/chrome/browser/ui/views/payments/payment_request_views_util.h
@@ -125,6 +125,11 @@ std::unique_ptr<views::Border> CreatePaymentRequestRowBorder(
// Creates a label with a bold font.
std::unique_ptr<views::Label> CreateBoldLabel(const base::string16& text);
+// Creates a label with a medium-weight font, with appropriate fallbacks for
+// platforms that have no medium font, or where a user has configured their
+// default font with a heavier weight.
+std::unique_ptr<views::Label> CreateMediumLabel(const base::string16& text);
+
// Creates a 2 line label containing |shipping_option|'s label and amount. If
// |emphasize_label| is true, the label part will be in medium weight.
std::unique_ptr<views::View> CreateShippingOptionLabel(

Powered by Google App Engine
This is Rietveld 408576698