Chromium Code Reviews| 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 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1353 public Dialog getDialogForTest() { | 1353 public Dialog getDialogForTest() { |
| 1354 return mDialog; | 1354 return mDialog; |
| 1355 } | 1355 } |
| 1356 | 1356 |
| 1357 @VisibleForTesting | 1357 @VisibleForTesting |
| 1358 public PaymentRequestSection getShippingSummarySectionForTest() { | 1358 public PaymentRequestSection getShippingSummarySectionForTest() { |
| 1359 return mShippingSummarySection; | 1359 return mShippingSummarySection; |
| 1360 } | 1360 } |
| 1361 | 1361 |
| 1362 @VisibleForTesting | 1362 @VisibleForTesting |
| 1363 public TextView getOrderSummaryTotalTextViewForTest() { | |
|
gogerald1
2017/05/17 19:11:47
You can use "getOrderSummarySectionForTest" to ret
wuandy1
2017/05/18 20:12:29
getSummaryRightTextView is protected..so i choosed
gogerald1
2017/05/18 21:57:33
Acknowledged.
| |
| 1364 return mOrderSummarySection.getSummaryRightTextView(); | |
| 1365 } | |
| 1366 | |
| 1367 @VisibleForTesting | |
| 1363 public ViewGroup getShippingAddressSectionForTest() { | 1368 public ViewGroup getShippingAddressSectionForTest() { |
| 1364 return mShippingAddressSection; | 1369 return mShippingAddressSection; |
| 1365 } | 1370 } |
| 1366 | 1371 |
| 1367 @VisibleForTesting | 1372 @VisibleForTesting |
| 1368 public ViewGroup getPaymentMethodSectionForTest() { | 1373 public ViewGroup getPaymentMethodSectionForTest() { |
| 1369 return mPaymentMethodSection; | 1374 return mPaymentMethodSection; |
| 1370 } | 1375 } |
| 1371 | 1376 |
| 1372 @VisibleForTesting | 1377 @VisibleForTesting |
| 1373 public PaymentRequestSection getContactDetailsSectionForTest() { | 1378 public PaymentRequestSection getContactDetailsSectionForTest() { |
| 1374 return mContactDetailsSection; | 1379 return mContactDetailsSection; |
| 1375 } | 1380 } |
| 1376 | 1381 |
| 1377 private void notifyReadyForInput() { | 1382 private void notifyReadyForInput() { |
| 1378 if (sObserverForTest != null && isAcceptingUserInput()) { | 1383 if (sObserverForTest != null && isAcceptingUserInput()) { |
| 1379 sObserverForTest.onPaymentRequestReadyForInput(this); | 1384 sObserverForTest.onPaymentRequestReadyForInput(this); |
| 1380 } | 1385 } |
| 1381 } | 1386 } |
| 1382 | 1387 |
| 1383 private void notifySelectionChecked() { | 1388 private void notifySelectionChecked() { |
| 1384 if (sObserverForTest != null) { | 1389 if (sObserverForTest != null) { |
| 1385 sObserverForTest.onPaymentRequestSelectionChecked(this); | 1390 sObserverForTest.onPaymentRequestSelectionChecked(this); |
| 1386 } | 1391 } |
| 1387 } | 1392 } |
| 1388 } | 1393 } |
| OLD | NEW |