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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentRequest.h

Issue 2869893002: Warn web developer on missing favicon for PaymentRequest UI. (Closed)
Patch Set: Ganggui's comment Created 3 years, 7 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 #ifndef PaymentRequest_h 5 #ifndef PaymentRequest_h
6 #define PaymentRequest_h 6 #define PaymentRequest_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptValue.h" 9 #include "bindings/core/v8/ScriptValue.h"
10 #include "components/payments/mojom/payment_request.mojom-blink.h" 10 #include "components/payments/mojom/payment_request.mojom-blink.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // payments::mojom::blink::PaymentRequestClient: 102 // payments::mojom::blink::PaymentRequestClient:
103 void OnShippingAddressChange( 103 void OnShippingAddressChange(
104 payments::mojom::blink::PaymentAddressPtr) override; 104 payments::mojom::blink::PaymentAddressPtr) override;
105 void OnShippingOptionChange(const String& shipping_option_id) override; 105 void OnShippingOptionChange(const String& shipping_option_id) override;
106 void OnPaymentResponse(payments::mojom::blink::PaymentResponsePtr) override; 106 void OnPaymentResponse(payments::mojom::blink::PaymentResponsePtr) override;
107 void OnError(payments::mojom::blink::PaymentErrorReason) override; 107 void OnError(payments::mojom::blink::PaymentErrorReason) override;
108 void OnComplete() override; 108 void OnComplete() override;
109 void OnAbort(bool aborted_successfully) override; 109 void OnAbort(bool aborted_successfully) override;
110 void OnCanMakePayment( 110 void OnCanMakePayment(
111 payments::mojom::blink::CanMakePaymentQueryResult) override; 111 payments::mojom::blink::CanMakePaymentQueryResult) override;
112 void WarnNoFavicon() override;
112 113
113 void OnCompleteTimeout(TimerBase*); 114 void OnCompleteTimeout(TimerBase*);
114 115
115 // Clears the promise resolvers and closes the Mojo connection. 116 // Clears the promise resolvers and closes the Mojo connection.
116 void ClearResolversAndCloseMojoConnection(); 117 void ClearResolversAndCloseMojoConnection();
117 118
118 PaymentOptions options_; 119 PaymentOptions options_;
119 Member<PaymentAddress> shipping_address_; 120 Member<PaymentAddress> shipping_address_;
120 String id_; 121 String id_;
121 String shipping_option_; 122 String shipping_option_;
122 String shipping_type_; 123 String shipping_type_;
123 Member<ScriptPromiseResolver> show_resolver_; 124 Member<ScriptPromiseResolver> show_resolver_;
124 Member<ScriptPromiseResolver> complete_resolver_; 125 Member<ScriptPromiseResolver> complete_resolver_;
125 Member<ScriptPromiseResolver> abort_resolver_; 126 Member<ScriptPromiseResolver> abort_resolver_;
126 Member<ScriptPromiseResolver> can_make_payment_resolver_; 127 Member<ScriptPromiseResolver> can_make_payment_resolver_;
127 payments::mojom::blink::PaymentRequestPtr payment_provider_; 128 payments::mojom::blink::PaymentRequestPtr payment_provider_;
128 mojo::Binding<payments::mojom::blink::PaymentRequestClient> client_binding_; 129 mojo::Binding<payments::mojom::blink::PaymentRequestClient> client_binding_;
129 TaskRunnerTimer<PaymentRequest> complete_timer_; 130 TaskRunnerTimer<PaymentRequest> complete_timer_;
130 }; 131 };
131 132
132 } // namespace blink 133 } // namespace blink
133 134
134 #endif // PaymentRequest_h 135 #endif // PaymentRequest_h
OLDNEW
« no previous file with comments | « components/payments/mojom/payment_request.mojom ('k') | third_party/WebKit/Source/modules/payments/PaymentRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698