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

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

Issue 2846053002: [Web Payments] Respect Harmony dialog width in Payment Request (Closed)
Patch Set: Change the dialog to Large Created 3 years, 8 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 a6a2ef0473751488a294e5b9a3864b86b86e155f..92515391c381fcb733c7d5eea72fc8e260fe79b7 100644
--- a/chrome/browser/ui/views/payments/payment_request_views_util.h
+++ b/chrome/browser/ui/views/payments/payment_request_views_util.h
@@ -37,7 +37,6 @@ constexpr int kPaymentRequestRowExtraRightInset = 8;
constexpr int kPaymentRequestButtonSpacing = 10;
// Dimensions of the dialog itself.
-constexpr int kDialogWidth = 450;
constexpr int kDialogHeight = 450;
enum class PaymentRequestCommonTags {
@@ -50,6 +49,8 @@ enum class PaymentRequestCommonTags {
PAYMENT_REQUEST_COMMON_TAG_MAX
};
+int GetActualDialogWidth();
+
// Creates and returns a header for all the sheets in the PaymentRequest dialog.
// The header contains an optional back arrow button (if |show_back_arrow| is
// true), a |title| label. |delegate| becomes the delegate for the back and

Powered by Google App Engine
This is Rietveld 408576698