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 9efedc2351fcff4df03649bf783a532a181c27a4..c3bd83b46e03ac220f24358ce761282082515896 100644 |
--- a/chrome/browser/ui/views/payments/payment_request_views_util.h |
+++ b/chrome/browser/ui/views/payments/payment_request_views_util.h |
@@ -12,6 +12,7 @@ |
#include "components/payments/mojom/payment_request.mojom.h" |
#include "third_party/skia/include/core/SkColor.h" |
#include "ui/gfx/geometry/insets.h" |
+#include "ui/gfx/text_constants.h" |
namespace autofill { |
class AutofillProfile; |
@@ -131,6 +132,11 @@ std::unique_ptr<views::Label> CreateBoldLabel(const base::string16& text); |
// default font with a heavier weight. |
std::unique_ptr<views::Label> CreateMediumLabel(const base::string16& text); |
+// Creates a label with grey, "hint" text and the provided |alignment|. |
+std::unique_ptr<views::Label> CreateHintLabel( |
+ const base::string16& text, |
+ gfx::HorizontalAlignment alignment = gfx::ALIGN_CENTER); |
+ |
// 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( |