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

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

Issue 2766413003: test (Closed)
Patch Set: format 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.payments.ui; 5 package org.chromium.chrome.browser.payments.ui;
6 6
7 /** 7 /**
8 * The data to show in the PaymentRequest UI. 8 * The data to show in the PaymentRequest UI.
9 */ 9 */
10 public class PaymentInformation { 10 public class PaymentInformation {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 /** 45 /**
46 * Returns the shipping addresses. 46 * Returns the shipping addresses.
47 * 47 *
48 * @return The shipping addresses. 48 * @return The shipping addresses.
49 */ 49 */
50 public SectionInformation getShippingAddresses() { 50 public SectionInformation getShippingAddresses() {
51 return mShippingAddresses; 51 return mShippingAddresses;
52 } 52 }
53 53
54 /** 54 /**
55 * Returns the label for the selected shipping address.
56 *
57 * @return The label for the selected shipping address or null.
58 */
59 public String getSelectedShippingAddressLabel() {
60 PaymentOption address = mShippingAddresses.getSelectedItem();
61 return address != null ? address.getLabel() : null;
62 }
63
64 /**
65 * Returns the sublabel for the selected shipping address.
66 *
67 * @return The sublabel for the selected shipping address or null.
68 */
69 public String getSelectedShippingAddressSublabel() {
70 PaymentOption address = mShippingAddresses.getSelectedItem();
71 return address != null ? address.getSublabel() : null;
72 }
73
74 /**
75 * Returns the tertiary label for the selected shipping address.
76 *
77 * @return The tertiary label for the selected shipping address or null.
78 */
79 public String getSelectedShippingAddressTertiaryLabel() {
80 PaymentOption address = mShippingAddresses.getSelectedItem();
81 return address != null ? address.getTertiaryLabel() : null;
82 }
83
84 /**
85 * Returns the shipping options. 55 * Returns the shipping options.
86 * 56 *
87 * @return The shipping options. 57 * @return The shipping options.
88 */ 58 */
89 public SectionInformation getShippingOptions() { 59 public SectionInformation getShippingOptions() {
90 return mShippingOptions; 60 return mShippingOptions;
91 } 61 }
92 62
93 /** 63 /**
94 * Returns the label for the selected shipping option.
95 *
96 * @return The label for the selected shipping option or null.
97 */
98 public String getSelectedShippingOptionLabel() {
99 PaymentOption option = mShippingOptions.getSelectedItem();
100 return option != null ? option.getLabel() : null;
101 }
102
103 /**
104 * Returns the contact details. 64 * Returns the contact details.
105 * 65 *
106 * @return The contact details. 66 * @return The contact details.
107 */ 67 */
108 public SectionInformation getContactDetails() { 68 public SectionInformation getContactDetails() {
109 return mContactDetails; 69 return mContactDetails;
110 } 70 }
111 71
112 /** 72 /**
113 * Returns the payment methods. 73 * Returns the payment methods.
114 * 74 *
115 * @return The payment methods. 75 * @return The payment methods.
116 */ 76 */
117 public SectionInformation getPaymentMethods() { 77 public SectionInformation getPaymentMethods() {
118 return mPaymentMethods; 78 return mPaymentMethods;
119 } 79 }
120 } 80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698