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.content.Context; | 7 import android.content.Context; |
8 import android.content.res.Resources; | 8 import android.content.res.Resources; |
9 import android.graphics.Color; | 9 import android.graphics.Color; |
10 import android.graphics.Typeface; | 10 import android.graphics.Typeface; |
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 /** Layout containing all the {@link OptionRow}s. */ | 1085 /** Layout containing all the {@link OptionRow}s. */ |
1086 private GridLayout mOptionLayout; | 1086 private GridLayout mOptionLayout; |
1087 | 1087 |
1088 /** A spinner to show when the user selection is being checked. */ | 1088 /** A spinner to show when the user selection is being checked. */ |
1089 private View mCheckingProgress; | 1089 private View mCheckingProgress; |
1090 | 1090 |
1091 /** SectionInformation that is used to populate the views in this sectio
n. */ | 1091 /** SectionInformation that is used to populate the views in this sectio
n. */ |
1092 private SectionInformation mSectionInformation; | 1092 private SectionInformation mSectionInformation; |
1093 | 1093 |
1094 /** Indicates whether the summary should be a single line. */ | 1094 /** Indicates whether the summary should be a single line. */ |
1095 private boolean mSummaryInSingleLine = false; | 1095 private boolean mSummaryInSingleLine; |
1096 | 1096 |
1097 private FocusChangedObserver mFocusChangedObserver; | 1097 private FocusChangedObserver mFocusChangedObserver; |
1098 | 1098 |
1099 /** | 1099 /** |
1100 * Constructs an OptionSection. | 1100 * Constructs an OptionSection. |
1101 * | 1101 * |
1102 * @param context Context to pull resources from. | 1102 * @param context Context to pull resources from. |
1103 * @param sectionName Title of the section to display. | 1103 * @param sectionName Title of the section to display. |
1104 * @param delegate Delegate to alert when something changes in the di
alog. | 1104 * @param delegate Delegate to alert when something changes in the di
alog. |
1105 */ | 1105 */ |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1428 } | 1428 } |
1429 | 1429 |
1430 /** Expand the separator to be the full width of the dialog. */ | 1430 /** Expand the separator to be the full width of the dialog. */ |
1431 public void expand() { | 1431 public void expand() { |
1432 LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) getLa
youtParams(); | 1432 LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) getLa
youtParams(); |
1433 ApiCompatibilityUtils.setMarginStart(params, 0); | 1433 ApiCompatibilityUtils.setMarginStart(params, 0); |
1434 ApiCompatibilityUtils.setMarginEnd(params, 0); | 1434 ApiCompatibilityUtils.setMarginEnd(params, 0); |
1435 } | 1435 } |
1436 } | 1436 } |
1437 } | 1437 } |
OLD | NEW |