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

Unified Diff: components/payments/content/payment_request.h

Issue 2730123002: [Web Payments] Add inline items to the Order Summary section. (Closed)
Patch Set: Address comments. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: components/payments/content/payment_request.h
diff --git a/components/payments/content/payment_request.h b/components/payments/content/payment_request.h
index 18d3f94229b3c6e85ff5fbc602fb4e6f58a1725c..f947000cef0e5be7ebaffa8b991887c8bf937b30 100644
--- a/components/payments/content/payment_request.h
+++ b/components/payments/content/payment_request.h
@@ -86,6 +86,14 @@ class PaymentRequest : payments::mojom::PaymentRequest {
const std::string& currency_system,
const std::string& locale_name);
+ // Uses CurrencyFormatter to format |amount| with the currency symbol for this
+ // request's currency.
+ base::string16 GetFormattedCurrencyAmount(const std::string& amount);
+
+ // Uses CurrencyFormatter to get the formatted currency code for this
+ // request's currency.
+ std::string GetFormattedCurrencyCode();
+
// Returns the appropriate Autofill Profiles for this user. On the first
// invocation of either getter, the profiles are fetched from the
// PersonalDataManager; on subsequent invocations, a cached version is
« no previous file with comments | « chrome/browser/ui/views/payments/payment_sheet_view_controller.cc ('k') | components/payments/content/payment_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698