Commit 9aa1d083 authored by gogerald's avatar gogerald Committed by Commit Bot

Remove unused files and fix coding style

BUG=716055

Review-Url: https://codereview.chromium.org/2919553002
Cr-Commit-Position: refs/heads/master@{#476347}
parent 891f72c5
...@@ -1056,10 +1056,11 @@ public abstract class PaymentRequestSection extends LinearLayout implements View ...@@ -1056,10 +1056,11 @@ public abstract class PaymentRequestSection extends LinearLayout implements View
/** Indicates whether the summary is displayed in a single line. */ /** Indicates whether the summary is displayed in a single line. */
private boolean mSummaryInSingleLine; private boolean mSummaryInSingleLine;
/** Indicates whether the summary is set to display in a single line in DISPLAY_MODE_NORMAL /**
* Indicates whether the summary is set to display in a single line in DISPLAY_MODE_NORMAL
* by caller. * by caller.
*/ */
boolean mSetDisplaySummaryInSingleLineInNormalMode = true; private boolean mSetDisplaySummaryInSingleLineInNormalMode = true;
/** Indicates whether the summary is set to R.style.PaymentsUiSectionDescriptiveText. */ /** Indicates whether the summary is set to R.style.PaymentsUiSectionDescriptiveText. */
private boolean mSummaryInDescriptiveText; private boolean mSummaryInDescriptiveText;
......
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.payments.ui;
import javax.annotation.Nullable;
/** The data to show in a shipping summary section. It contains shipping address and option. */
public class ShippingSummaryInformation {
private SectionInformation mShippingAddress;
private SectionInformation mShippingOption;
/** Builds ShppingSummaryInformation with shipping address and option section information. */
public ShippingSummaryInformation(
SectionInformation shippingAddress, SectionInformation shippingOption) {
mShippingAddress = shippingAddress;
mShippingOption = shippingOption;
}
/**
* Returns the label for the selected shipping address.
*
* @return The label for the selected shipping address or null.
*/
@Nullable
public String getSelectedShippingAddressLabel() {
PaymentOption address = mShippingAddress.getSelectedItem();
return address != null ? address.getLabel() : null;
}
/**
* Returns the sublabel for the selected shipping address.
*
* @return The sublabel for the selected shipping address or null.
*/
@Nullable
public String getSelectedShippingAddressSublabel() {
PaymentOption address = mShippingAddress.getSelectedItem();
return address != null ? address.getSublabel() : null;
}
/**
* Returns the tertiary label for the selected shipping address.
*
* @return The tertiary label for the selected shipping address or null.
*/
@Nullable
public String getSelectedShippingAddressTertiaryLabel() {
PaymentOption address = mShippingAddress.getSelectedItem();
return address != null ? address.getTertiaryLabel() : null;
}
/**
* Returns the label for the selected shipping option.
*
* @return The label for the selected shipping option or null.
*/
@Nullable
public String getSelectedShippingOptionLabel() {
PaymentOption option = mShippingOption.getSelectedItem();
return option != null ? option.getLabel() : null;
}
/**
* Returns the shipping address section information.
*
* @return The shipping address section information.
*/
public SectionInformation getShippingAddressSectionInfo() {
return mShippingAddress;
}
}
...@@ -799,7 +799,6 @@ chrome_java_sources = [ ...@@ -799,7 +799,6 @@ chrome_java_sources = [
"java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUiErrorView.java", "java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUiErrorView.java",
"java/src/org/chromium/chrome/browser/payments/ui/SectionInformation.java", "java/src/org/chromium/chrome/browser/payments/ui/SectionInformation.java",
"java/src/org/chromium/chrome/browser/payments/ui/SectionUiUtils.java", "java/src/org/chromium/chrome/browser/payments/ui/SectionUiUtils.java",
"java/src/org/chromium/chrome/browser/payments/ui/ShippingSummaryInformation.java",
"java/src/org/chromium/chrome/browser/payments/ui/ShoppingCart.java", "java/src/org/chromium/chrome/browser/payments/ui/ShoppingCart.java",
"java/src/org/chromium/chrome/browser/permissions/AndroidPermissionRequester.java", "java/src/org/chromium/chrome/browser/permissions/AndroidPermissionRequester.java",
"java/src/org/chromium/chrome/browser/permissions/PermissionDialogController.java", "java/src/org/chromium/chrome/browser/permissions/PermissionDialogController.java",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment