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

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

Issue 2885443003: enable modifiers for native apps (Closed)
Patch Set: fix compilation error Created 3 years, 7 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 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
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() {
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 }
OLDNEW
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java ('k') | chrome/android/java_sources.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698