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

Side by Side Diff: chrome/browser/payments/payment_request_impl.h

Issue 2529733002: [WebPayments] Move views-specific code to c/b/ui/views/ (Closed)
Patch Set: Implement ShowWebPaymentsDialog in TestBrowserWindow 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
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 CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_IMPL_H_ 5 #ifndef CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_IMPL_H_
6 #define CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_IMPL_H_ 6 #define CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_IMPL_H_
7 7
8 #include "components/payments/payment_request.mojom.h" 8 #include "components/payments/payment_request.mojom.h"
9 #include "mojo/public/cpp/bindings/binding.h" 9 #include "mojo/public/cpp/bindings/binding.h"
10 10
(...skipping 16 matching lines...) Expand all
27 void Init(payments::mojom::PaymentRequestClientPtr client, 27 void Init(payments::mojom::PaymentRequestClientPtr client,
28 std::vector<payments::mojom::PaymentMethodDataPtr> methodData, 28 std::vector<payments::mojom::PaymentMethodDataPtr> methodData,
29 payments::mojom::PaymentDetailsPtr details, 29 payments::mojom::PaymentDetailsPtr details,
30 payments::mojom::PaymentOptionsPtr options) override; 30 payments::mojom::PaymentOptionsPtr options) override;
31 void Show() override {} 31 void Show() override {}
32 void UpdateWith(payments::mojom::PaymentDetailsPtr details) override {} 32 void UpdateWith(payments::mojom::PaymentDetailsPtr details) override {}
33 void Abort() override {} 33 void Abort() override {}
34 void Complete(payments::mojom::PaymentComplete result) override {} 34 void Complete(payments::mojom::PaymentComplete result) override {}
35 void CanMakeActivePayment() override {} 35 void CanMakeActivePayment() override {}
36 36
37 void Cancel();
37 void OnError(); 38 void OnError();
38 39
40 content::WebContents* web_contents() { return web_contents_; }
41
39 private: 42 private:
40 friend class base::RefCounted<PaymentRequestImpl>; 43 friend class base::RefCounted<PaymentRequestImpl>;
41 ~PaymentRequestImpl() override; 44 ~PaymentRequestImpl() override;
42 45
43 content::WebContents* web_contents_; 46 content::WebContents* web_contents_;
44 mojo::Binding<payments::mojom::PaymentRequest> binding_; 47 mojo::Binding<payments::mojom::PaymentRequest> binding_;
45 PaymentRequestDialog* dialog_; 48 payments::mojom::PaymentRequestClientPtr client_;
49
46 DISALLOW_COPY_AND_ASSIGN(PaymentRequestImpl); 50 DISALLOW_COPY_AND_ASSIGN(PaymentRequestImpl);
47 }; 51 };
48 52
49 } // namespace payments 53 } // namespace payments
50 54
51 void CreatePaymentRequestHandler( 55 void CreatePaymentRequestHandler(
52 content::WebContents* web_contents, 56 content::WebContents* web_contents,
53 mojo::InterfaceRequest<payments::mojom::PaymentRequest> request); 57 mojo::InterfaceRequest<payments::mojom::PaymentRequest> request);
54 58
55 #endif // CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_IMPL_H_ 59 #endif // CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698