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

Side by Side Diff: ios/web/public/payments/payment_request.h

Issue 2560583002: Strings related to the shipping address in payment summary view and address selection view. (Closed)
Patch Set: Addressed comments by jdonnelly@ Created 4 years 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 | « ios/web/payments/payment_request_unittest.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 IOS_WEB_PUBLIC_PAYMENTS_PAYMENT_REQUEST_H_ 5 #ifndef IOS_WEB_PUBLIC_PAYMENTS_PAYMENT_REQUEST_H_
6 #define IOS_WEB_PUBLIC_PAYMENTS_PAYMENT_REQUEST_H_ 6 #define IOS_WEB_PUBLIC_PAYMENTS_PAYMENT_REQUEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 ~PaymentRequest(); 271 ~PaymentRequest();
272 272
273 bool operator==(const PaymentRequest& other) const; 273 bool operator==(const PaymentRequest& other) const;
274 bool operator!=(const PaymentRequest& other) const; 274 bool operator!=(const PaymentRequest& other) const;
275 275
276 // Populates the properties of this PaymentRequest from |value|. Returns true 276 // Populates the properties of this PaymentRequest from |value|. Returns true
277 // if the required values are present. 277 // if the required values are present.
278 bool FromDictionaryValue(const base::DictionaryValue& value); 278 bool FromDictionaryValue(const base::DictionaryValue& value);
279 279
280 // Properties set in order to communicate user choices back to the page. 280 // Properties set in order to communicate user choices back to the page.
281 PaymentAddress payment_address; 281 PaymentAddress shipping_address;
282 base::string16 shipping_option; 282 base::string16 shipping_option;
283 283
284 // Properties set via the constructor for communicating from the page to the 284 // Properties set via the constructor for communicating from the page to the
285 // browser UI. 285 // browser UI.
286 std::vector<PaymentMethodData> method_data; 286 std::vector<PaymentMethodData> method_data;
287 PaymentDetails details; 287 PaymentDetails details;
288 PaymentOptions options; 288 PaymentOptions options;
289 }; 289 };
290 290
291 // Contains the response from the PaymentRequest API when a user accepts 291 // Contains the response from the PaymentRequest API when a user accepts
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 base::string16 method_name; 342 base::string16 method_name;
343 343
344 // A credit card response object used by the merchant to process the 344 // A credit card response object used by the merchant to process the
345 // transaction and determine successful fund transfer. 345 // transaction and determine successful fund transfer.
346 BasicCardResponse details; 346 BasicCardResponse details;
347 }; 347 };
348 348
349 } // namespace web 349 } // namespace web
350 350
351 #endif // IOS_WEB_PUBLIC_PAYMENTS_PAYMENT_REQUEST_H_ 351 #endif // IOS_WEB_PUBLIC_PAYMENTS_PAYMENT_REQUEST_H_
OLDNEW
« no previous file with comments | « ios/web/payments/payment_request_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698