Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
|
anthonyvd
2017/01/12 15:42:11
Can we move the contents of this file in payment_r
tmartino
2017/01/18 17:28:24
Done
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_ADDRESS_UTIL_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_ADDRESS_UTIL_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 #include <string> | |
| 10 | |
| 11 #include "components/autofill/core/browser/autofill_profile.h" | |
| 12 | |
| 13 namespace views { | |
| 14 class View; | |
| 15 } | |
| 16 | |
| 17 namespace payments { | |
| 18 | |
| 19 enum class AddressFormatType { | |
| 20 SHIPPING_SUMMARY, | |
| 21 SHIPPING_DETAILED, | |
| 22 CONTACT_SUMMARY, | |
| 23 CONTACT_DETAILED | |
| 24 }; | |
| 25 | |
| 26 std::unique_ptr<autofill::AutofillProfile> GetDummyProfile(); | |
| 27 | |
| 28 std::unique_ptr<views::View> GetPaymentRequestAddressLabel( | |
| 29 AddressFormatType type, | |
|
anthonyvd
2017/01/12 15:42:11
What's this parameter for (and same question for t
tmartino
2017/01/18 17:28:24
Changed name + documented
| |
| 30 std::string locale, | |
| 31 autofill::AutofillProfile* profile); | |
| 32 | |
| 33 } // namespace payments | |
| 34 | |
| 35 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_ADDRESS_UTIL_H_ | |
| OLD | NEW |