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

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

Issue 2720223004: Use PaymentRequestItemList for Shipping screen (Closed)
Patch Set: rebase 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_LIST_VIEW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_LIST_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_LIST_VIEW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_LIST_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_sheet_controller.h" 10 #include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h"
10 11
11 namespace payments { 12 namespace payments {
12 13
13 class PaymentRequest; 14 class PaymentRequest;
14 class PaymentRequestDialogView; 15 class PaymentRequestDialogView;
15 16
16 // The PaymentRequestSheetController subtype for the Shipping address list 17 // The PaymentRequestSheetController subtype for the Shipping address list
17 // screen of the Payment Request flow. 18 // screen of the Payment Request flow.
18 class ShippingListViewController : public PaymentRequestSheetController { 19 class ShippingListViewController : public PaymentRequestSheetController {
19 public: 20 public:
20 // Does not take ownership of the arguments, which should outlive this object. 21 // Does not take ownership of the arguments, which should outlive this object.
21 ShippingListViewController(PaymentRequest* request, 22 ShippingListViewController(PaymentRequest* request,
22 PaymentRequestDialogView* dialog); 23 PaymentRequestDialogView* dialog);
23 ~ShippingListViewController() override; 24 ~ShippingListViewController() override;
24 25
25 // PaymentRequestSheetController: 26 // PaymentRequestSheetController:
26 std::unique_ptr<views::View> CreateView() override; 27 std::unique_ptr<views::View> CreateView() override;
27 28
28 private: 29 private:
29 std::unique_ptr<views::Button> CreateAddressRow( 30 PaymentRequestItemList list_;
30 std::unique_ptr<views::View> content);
31 31
32 DISALLOW_COPY_AND_ASSIGN(ShippingListViewController); 32 DISALLOW_COPY_AND_ASSIGN(ShippingListViewController);
33 }; 33 };
34 34
35 } // namespace payments 35 } // namespace payments
36 36
37 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_LIST_VIEW_CONTROLLER_H_ 37 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_LIST_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698