diff options
Diffstat (limited to 'chromium/components/payments/core/strings_util.h')
-rw-r--r-- | chromium/components/payments/core/strings_util.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/chromium/components/payments/core/strings_util.h b/chromium/components/payments/core/strings_util.h new file mode 100644 index 00000000000..3d72567c44c --- /dev/null +++ b/chromium/components/payments/core/strings_util.h @@ -0,0 +1,30 @@ +// 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. + +#ifndef COMPONENTS_PAYMENTS_CORE_STRINGS_UTIL_H_ +#define COMPONENTS_PAYMENTS_CORE_STRINGS_UTIL_H_ + +#include "base/strings/string16.h" +#include "components/payments/core/payment_options_provider.h" + +namespace payments { + +// Gets the informational message to be displayed in the shipping address +// selector view when there are no valid shipping options. +base::string16 GetShippingAddressSelectorInfoMessage( + PaymentShippingType shipping_type); + +// Gets the appropriate display string for the Shipping Address string for the +// given PaymentShippingType. +base::string16 GetShippingAddressSectionString( + PaymentShippingType shipping_type); + +// Gets the appropriate display string for the Shipping Option string for the +// given PaymentShippingType. +base::string16 GetShippingOptionSectionString( + PaymentShippingType shipping_type); + +} // namespace payments + +#endif // COMPONENTS_PAYMENTS_CORE_STRINGS_UTIL_H_ |