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

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

Issue 2656853002: [Web Payments] Refactor the row display code. (Closed)
Patch Set: Rebase Created 3 years, 11 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 91762417355dafc000a0fd10615b8321c86d2659..13e250614e9a4e19fa1678f90432b847426be79c 100644
--- a/chrome/browser/ui/views/payments/payment_request_views_util.h
+++ b/chrome/browser/ui/views/payments/payment_request_views_util.h
@@ -15,12 +15,16 @@ class AutofillProfile;
}
namespace views {
+class Border;
class VectorIconButtonDelegate;
class View;
}
namespace payments {
+constexpr int kPaymentRequestRowHorizontalInsets = 14;
+constexpr int kPaymentRequestRowVerticalInsets = 8;
+
enum class PaymentRequestCommonTags {
BACK_BUTTON_TAG = 0,
CLOSE_BUTTON_TAG,
@@ -81,6 +85,10 @@ std::unique_ptr<views::View> GetContactInfoLabel(
bool show_payer_email,
bool show_payer_phone);
+// Creates a views::Border object that can paint the gray horizontal ruler used
+// as a separator between items in the Payment Request dialog.
+std::unique_ptr<views::Border> CreatePaymentRequestRowBorder();
+
} // namespace payments
#endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698