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

Side by Side Diff: components/payments/content/payment_request.h

Issue 2742643004: [Web Payments] Use shippingType to choose the Payment Sheet shipping strings. (Closed)
Patch Set: Fix windows compile. 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/payments/payment_sheet_view_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ 5 #ifndef COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_
6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ 6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // observers. 138 // observers.
139 void SetSelectedShippingProfile(autofill::AutofillProfile* profile); 139 void SetSelectedShippingProfile(autofill::AutofillProfile* profile);
140 void SetSelectedContactProfile(autofill::AutofillProfile* profile); 140 void SetSelectedContactProfile(autofill::AutofillProfile* profile);
141 void SetSelectedCreditCard(autofill::CreditCard* card); 141 void SetSelectedCreditCard(autofill::CreditCard* card);
142 142
143 autofill::PersonalDataManager* personal_data_manager() { 143 autofill::PersonalDataManager* personal_data_manager() {
144 return delegate_->GetPersonalDataManager(); 144 return delegate_->GetPersonalDataManager();
145 } 145 }
146 146
147 payments::mojom::PaymentDetails* details() { return details_.get(); } 147 payments::mojom::PaymentDetails* details() { return details_.get(); }
148 payments::mojom::PaymentOptions* options() { return options_.get(); }
148 const std::vector<std::string>& supported_card_networks() { 149 const std::vector<std::string>& supported_card_networks() {
149 return supported_card_networks_; 150 return supported_card_networks_;
150 } 151 }
151 content::WebContents* web_contents() { return web_contents_; } 152 content::WebContents* web_contents() { return web_contents_; }
152 153
153 bool request_shipping() const { return options_->request_shipping; } 154 bool request_shipping() const { return options_->request_shipping; }
154 bool request_payer_name() const { return options_->request_payer_name; } 155 bool request_payer_name() const { return options_->request_payer_name; }
155 bool request_payer_phone() const { return options_->request_payer_phone; } 156 bool request_payer_phone() const { return options_->request_payer_phone; }
156 bool request_payer_email() const { return options_->request_payer_email; } 157 bool request_payer_email() const { return options_->request_payer_email; }
157 158
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // This is owned by |details_|, which is owned by this object and lives until 221 // This is owned by |details_|, which is owned by this object and lives until
221 // |this| is destructed so it's safe to keep this raw pointer. 222 // |this| is destructed so it's safe to keep this raw pointer.
222 payments::mojom::PaymentShippingOption* selected_shipping_option_; 223 payments::mojom::PaymentShippingOption* selected_shipping_option_;
223 224
224 DISALLOW_COPY_AND_ASSIGN(PaymentRequest); 225 DISALLOW_COPY_AND_ASSIGN(PaymentRequest);
225 }; 226 };
226 227
227 } // namespace payments 228 } // namespace payments
228 229
229 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ 230 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/payments/payment_sheet_view_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698