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 android.app.Activity; | 7 import android.app.Activity; |
8 import android.content.Context; | 8 import android.content.Context; |
9 import android.content.DialogInterface; | 9 import android.content.DialogInterface; |
10 import android.graphics.Color; | 10 import android.graphics.Color; |
(...skipping 30 matching lines...) Expand all Loading... |
41 import org.chromium.chrome.browser.widget.FadingShadow; | 41 import org.chromium.chrome.browser.widget.FadingShadow; |
42 import org.chromium.chrome.browser.widget.FadingShadowView; | 42 import org.chromium.chrome.browser.widget.FadingShadowView; |
43 | 43 |
44 import java.util.ArrayList; | 44 import java.util.ArrayList; |
45 import java.util.List; | 45 import java.util.List; |
46 import java.util.regex.Pattern; | 46 import java.util.regex.Pattern; |
47 | 47 |
48 import javax.annotation.Nullable; | 48 import javax.annotation.Nullable; |
49 | 49 |
50 /** | 50 /** |
51 * The PaymentRequest editor dialog. Can be used for editing contact information
, shipping address, | 51 * The PaymentRequest editor dialog. Can be used for editing payer information,
shipping address, |
52 * billing address, and credit cards. | 52 * billing address, and credit cards. |
53 */ | 53 */ |
54 public class EditorView extends AlwaysDismissedDialog | 54 public class EditorView extends AlwaysDismissedDialog |
55 implements OnClickListener, DialogInterface.OnDismissListener { | 55 implements OnClickListener, DialogInterface.OnDismissListener { |
56 /** The indicator for input fields that are required. */ | 56 /** The indicator for input fields that are required. */ |
57 public static final String REQUIRED_FIELD_INDICATOR = "*"; | 57 public static final String REQUIRED_FIELD_INDICATOR = "*"; |
58 | 58 |
59 /** Help page that the user is directed to when asking for help. */ | 59 /** Help page that the user is directed to when asking for help. */ |
60 private static final String HELP_URL = "https://support.google.com/chrome/an
swer/142893?hl=en"; | 60 private static final String HELP_URL = "https://support.google.com/chrome/an
swer/142893?hl=en"; |
61 | 61 |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 public List<EditText> getEditableTextFieldsForTest() { | 473 public List<EditText> getEditableTextFieldsForTest() { |
474 return mEditableTextFields; | 474 return mEditableTextFields; |
475 } | 475 } |
476 | 476 |
477 /** @return All dropdown fields in the editor. Used only for tests. */ | 477 /** @return All dropdown fields in the editor. Used only for tests. */ |
478 @VisibleForTesting | 478 @VisibleForTesting |
479 public List<Spinner> getDropdownFieldsForTest() { | 479 public List<Spinner> getDropdownFieldsForTest() { |
480 return mDropdownFields; | 480 return mDropdownFields; |
481 } | 481 } |
482 } | 482 } |
OLD | NEW |