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

Side by Side Diff: components/payments/mojom/payment_app.mojom

Issue 2898223002: PaymentHandler: Rename PaymentAppRequest with PaymentRequestEventData. (Closed)
Patch Set: Rename Created 3 years, 6 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
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 module payments.mojom; 5 module payments.mojom;
6 6
7 import "components/payments/mojom/payment_request.mojom"; 7 import "components/payments/mojom/payment_request.mojom";
8 import "mojo/common/time.mojom"; 8 import "mojo/common/time.mojom";
9 import "url/mojo/url.mojom"; 9 import "url/mojo/url.mojom";
10 10
(...skipping 20 matching lines...) Expand all
31 KeysOfPaymentInstruments() 31 KeysOfPaymentInstruments()
32 => (array<string> keys, PaymentHandlerStatus status); 32 => (array<string> keys, PaymentHandlerStatus status);
33 HasPaymentInstrument(string instrument_key) 33 HasPaymentInstrument(string instrument_key)
34 => (PaymentHandlerStatus status); 34 => (PaymentHandlerStatus status);
35 SetPaymentInstrument(string instrument_key, PaymentInstrument instrument) 35 SetPaymentInstrument(string instrument_key, PaymentInstrument instrument)
36 => (PaymentHandlerStatus status); 36 => (PaymentHandlerStatus status);
37 ClearPaymentInstruments() 37 ClearPaymentInstruments()
38 => (PaymentHandlerStatus status); 38 => (PaymentHandlerStatus status);
39 }; 39 };
40 40
41 struct PaymentAppRequest { 41 struct PaymentRequestEventData {
42 url.mojom.Url top_level_origin; 42 url.mojom.Url top_level_origin;
43 url.mojom.Url payment_request_origin; 43 url.mojom.Url payment_request_origin;
44 string payment_request_id; 44 string payment_request_id;
45 array<PaymentMethodData> method_data; 45 array<PaymentMethodData> method_data;
46 PaymentItem total; 46 PaymentItem total;
47 array<PaymentDetailsModifier> modifiers; 47 array<PaymentDetailsModifier> modifiers;
48 string instrument_key; 48 string instrument_key;
49 }; 49 };
50 50
51 struct PaymentAppResponse { 51 struct PaymentAppResponse {
52 string method_name; 52 string method_name;
53 string stringified_details; 53 string stringified_details;
54 }; 54 };
55 55
56 // This interface is provided to pass a payment app response from payment 56 // This interface is provided to pass a payment app response from payment
57 // request event in renderer side to browser side by calling respondWith(). 57 // request event in renderer side to browser side by calling respondWith().
58 interface PaymentAppResponseCallback { 58 interface PaymentAppResponseCallback {
59 OnPaymentAppResponse(PaymentAppResponse response, 59 OnPaymentAppResponse(PaymentAppResponse response,
60 mojo.common.mojom.Time dispatch_event_time); 60 mojo.common.mojom.Time dispatch_event_time);
61 }; 61 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698