Chromium Code Reviews| Index: chrome/browser/ui/views/payments/payment_request_views_util.h |
| diff --git a/chrome/browser/ui/views/payments/payment_request_views_util.h b/chrome/browser/ui/views/payments/payment_request_views_util.h |
| index d72f6eadbc59ab10c074b4adeed19e3b13f1f9a9..893d4d9290a275195246668066a448ebdff7064e 100644 |
| --- a/chrome/browser/ui/views/payments/payment_request_views_util.h |
| +++ b/chrome/browser/ui/views/payments/payment_request_views_util.h |
| @@ -6,8 +6,10 @@ |
| #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_ |
| #include <memory> |
| +#include <string> |
| #include "base/strings/string16.h" |
| +#include "components/autofill/core/browser/autofill_profile.h" |
|
please use gerrit instead
2017/01/18 18:50:47
Forward-declare instead, please.
tmartino
2017/01/18 20:39:13
Done
|
| namespace views { |
| class VectorIconButtonDelegate; |
| @@ -54,6 +56,28 @@ std::unique_ptr<views::View> CreatePaymentView( |
| std::unique_ptr<views::View> header_view, |
| std::unique_ptr<views::View> content_view); |
| +// Represents formatting options for each of the different contexts in which an |
| +// Address label may be displayed. |
| +enum class AddressStyleType { SUMMARY, DETAILED }; |
| + |
| +// Extracts and formats descriptive text from the given |profile| to represent |
| +// the address in the context specified by |type|. |
| +std::unique_ptr<views::View> GetShippingAddressLabel( |
| + AddressStyleType type, |
| + std::string locale, |
|
please use gerrit instead
2017/01/18 18:50:47
const-ref
tmartino
2017/01/18 20:39:13
Done to all
|
| + autofill::AutofillProfile* profile); |
|
please use gerrit instead
2017/01/18 18:50:47
const-ref
|
| + |
| +// Extracts and formats descriptive text from the given |profile| to represent |
| +// the contact info in the context specified by |type|. Includes/excludes name, |
| +// email, and phone fields according to the respective boolean fields. |
| +std::unique_ptr<views::View> GetContactInfoLabel( |
| + AddressStyleType type, |
| + std::string locale, |
|
please use gerrit instead
2017/01/18 18:50:47
const-ref
|
| + autofill::AutofillProfile* profile, |
|
please use gerrit instead
2017/01/18 18:50:47
const-ref
|
| + bool show_payer_name, |
| + bool show_payer_email, |
| + bool show_payer_phone); |
| + |
| } // namespace payments |
| #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_ |