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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentInformation.java

Issue 2066483010: Phone and email selection UI for PaymentRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix integration test Created 4 years, 6 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/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentInformation.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentInformation.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentInformation.java
index a72383fa85be3af127cfdb350b837216b504e180..dee067e828a822047327caa91e8484d4208dd436 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentInformation.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentInformation.java
@@ -11,21 +11,25 @@ public class PaymentInformation {
private final ShoppingCart mShoppingCart;
private final SectionInformation mShippingAddresses;
private final SectionInformation mShippingOptions;
+ private final SectionInformation mContactDetails;
private final SectionInformation mPaymentMethods;
/**
* Builds the payment information to show in the PaymentRequest view.
*
- * @param shoppingCart The shopping cart.
+ * @param shoppingCart The shopping cart.
* @param sippingAddresses The shipping addresses.
- * @param shippingOptions The shipping options.
- * @param paymentMethods The payment methods.
+ * @param shippingOptions The shipping options.
+ * @param contactDetails The contact details.
+ * @param paymentMethods The payment methods.
*/
public PaymentInformation(ShoppingCart shoppingCart, SectionInformation shippingAddresses,
- SectionInformation shippingOptions, SectionInformation paymentMethods) {
+ SectionInformation shippingOptions, SectionInformation contactDetails,
+ SectionInformation paymentMethods) {
mShoppingCart = shoppingCart;
mShippingAddresses = shippingAddresses;
mShippingOptions = shippingOptions;
+ mContactDetails = contactDetails;
mPaymentMethods = paymentMethods;
}
@@ -87,6 +91,15 @@ public class PaymentInformation {
}
/**
+ * Returns the contact details.
+ *
+ * @return The contact details.
+ */
+ public SectionInformation getContactDetails() {
+ return mContactDetails;
+ }
+
+ /**
* Returns the payment methods.
*
* @return The payment methods.

Powered by Google App Engine
This is Rietveld 408576698