| OLD | NEW |
| 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 import static org.chromium.chrome.browser.payments.ui.PaymentRequestSection.EDIT
_BUTTON_GONE; | 7 import static org.chromium.chrome.browser.payments.ui.PaymentRequestSection.EDIT
_BUTTON_GONE; |
| 8 | 8 |
| 9 import android.animation.Animator; | 9 import android.animation.Animator; |
| 10 import android.animation.AnimatorListenerAdapter; | 10 import android.animation.AnimatorListenerAdapter; |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 private FocusAnimator mSectionAnimator; | 305 private FocusAnimator mSectionAnimator; |
| 306 private int mAnimatorTranslation; | 306 private int mAnimatorTranslation; |
| 307 private boolean mIsInitialLayoutComplete; | 307 private boolean mIsInitialLayoutComplete; |
| 308 | 308 |
| 309 /** | 309 /** |
| 310 * Builds the UI for PaymentRequest. | 310 * Builds the UI for PaymentRequest. |
| 311 * | 311 * |
| 312 * @param activity The activity on top of which the UI should be disp
layed. | 312 * @param activity The activity on top of which the UI should be disp
layed. |
| 313 * @param client The consumer of the PaymentRequest UI. | 313 * @param client The consumer of the PaymentRequest UI. |
| 314 * @param requestShipping Whether the UI should show the shipping address an
d option selection. | 314 * @param requestShipping Whether the UI should show the shipping address an
d option selection. |
| 315 * @param requestContact Whether the UI should show the email address and p
hone number | 315 * @param requestContact Whether the UI should show the payer name, email a
ddress and |
| 316 * selection. | 316 * phone number selection. |
| 317 * @param canAddCards Whether the UI should show the [+ADD CARD] button.
This can be false, | 317 * @param canAddCards Whether the UI should show the [+ADD CARD] button.
This can be false, |
| 318 * for example, when the merchant does not accept cre
dit cards, so | 318 * for example, when the merchant does not accept cre
dit cards, so |
| 319 * there's no point in adding cards within PaymentReq
uest UI. | 319 * there's no point in adding cards within PaymentReq
uest UI. |
| 320 * @param title The title to show at the top of the UI. This can b
e, for example, the | 320 * @param title The title to show at the top of the UI. This can b
e, for example, the |
| 321 * <title> of the merchant website. If the stri
ng is too long for | 321 * <title> of the merchant website. If the stri
ng is too long for |
| 322 * UI, it elides at the end. | 322 * UI, it elides at the end. |
| 323 * @param origin The origin (part of URL) to show under the title.
For example, | 323 * @param origin The origin (part of URL) to show under the title.
For example, |
| 324 * "https://shop.momandpop.com". If the origin is too
long for the UI, it | 324 * "https://shop.momandpop.com". If the origin is too
long for the UI, it |
| 325 * should elide according to: | 325 * should elide according to: |
| 326 * https://www.chromium.org/Home/chromium-security/enamel#TOC-Eliding-Origin
-Names-And-Hostnames | 326 * https://www.chromium.org/Home/chromium-security/enamel#TOC-Eliding-Origin
-Names-And-Hostnames |
| (...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1245 sObserverForTest.onPaymentRequestReadyForInput(this); | 1245 sObserverForTest.onPaymentRequestReadyForInput(this); |
| 1246 } | 1246 } |
| 1247 } | 1247 } |
| 1248 | 1248 |
| 1249 private void notifySelectionChecked() { | 1249 private void notifySelectionChecked() { |
| 1250 if (sObserverForTest != null) { | 1250 if (sObserverForTest != null) { |
| 1251 sObserverForTest.onPaymentRequestSelectionChecked(this); | 1251 sObserverForTest.onPaymentRequestSelectionChecked(this); |
| 1252 } | 1252 } |
| 1253 } | 1253 } |
| 1254 } | 1254 } |
| OLD | NEW |