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

Side by Side Diff: chrome/browser/ui/views/payments/shipping_option_view_controller.h

Issue 2748133004: [Payments] View controllers no longer have access to PaymentRequest (Closed)
Patch Set: Initial 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_UI_VIEWS_PAYMENTS_SHIPPING_OPTION_VIEW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_OPTION_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_OPTION_VIEW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_OPTION_VIEW_CONTROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/views/payments/payment_request_item_list.h" 9 #include "chrome/browser/ui/views/payments/payment_request_item_list.h"
10 #include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h" 10 #include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h"
11 11
12 namespace payments { 12 namespace payments {
13 13
14 class PaymentRequestSpec;
15 class PaymentRequestState;
16
14 class ShippingOptionViewController : public PaymentRequestSheetController { 17 class ShippingOptionViewController : public PaymentRequestSheetController {
15 public: 18 public:
16 ShippingOptionViewController(PaymentRequest* request, 19 ShippingOptionViewController(PaymentRequestSpec* spec,
20 PaymentRequestState* state,
17 PaymentRequestDialogView* dialog); 21 PaymentRequestDialogView* dialog);
18 ~ShippingOptionViewController() override; 22 ~ShippingOptionViewController() override;
19 23
20 // PaymentRequestSheetController: 24 // PaymentRequestSheetController:
21 std::unique_ptr<views::View> CreateView() override; 25 std::unique_ptr<views::View> CreateView() override;
22 26
23 private: 27 private:
24 // PaymentRequestSheetController: 28 // PaymentRequestSheetController:
25 std::unique_ptr<views::View> CreateExtraFooterView() override; 29 std::unique_ptr<views::View> CreateExtraFooterView() override;
26 30
27 PaymentRequestItemList shipping_option_list_; 31 PaymentRequestItemList shipping_option_list_;
28 32
29 DISALLOW_COPY_AND_ASSIGN(ShippingOptionViewController); 33 DISALLOW_COPY_AND_ASSIGN(ShippingOptionViewController);
30 }; 34 };
31 35
32 } // namespace payments 36 } // namespace payments
33 37
34 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_OPTION_VIEW_CONTROLLER_H_ 38 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_OPTION_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698