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

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

Issue 2692923011: [Payments] Adjust the UI fit the mocks better (Closed)
Patch Set: adds ascii art Created 3 years, 10 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 CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_SHEET_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_SHEET_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_SHEET_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_SHEET_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 15 matching lines...) Expand all
26 public: 26 public:
27 // Objects of this class are owned by |dialog|, so it's a non-owned pointer 27 // Objects of this class are owned by |dialog|, so it's a non-owned pointer
28 // that should be valid throughout this object's lifetime. 28 // that should be valid throughout this object's lifetime.
29 // |request| is also not owned by this and is guaranteed to outlive dialog. 29 // |request| is also not owned by this and is guaranteed to outlive dialog.
30 // Neither |request| or |dialog| should be null. 30 // Neither |request| or |dialog| should be null.
31 PaymentRequestSheetController(PaymentRequest* request, 31 PaymentRequestSheetController(PaymentRequest* request,
32 PaymentRequestDialogView* dialog); 32 PaymentRequestDialogView* dialog);
33 ~PaymentRequestSheetController() override {} 33 ~PaymentRequestSheetController() override {}
34 34
35 virtual std::unique_ptr<views::View> CreateView() = 0; 35 virtual std::unique_ptr<views::View> CreateView() = 0;
36 // A leading view to complement the button(s). See CreateFooterView for how
37 // this is used and what insets are already applied.
38 virtual std::unique_ptr<views::View> CreateLeadingFooterView();
36 39
37 // The PaymentRequest object associated with this instance of the dialog. 40 // The PaymentRequest object associated with this instance of the dialog.
38 // Caller should not take ownership of the result. 41 // Caller should not take ownership of the result.
39 PaymentRequest* request() { return request_; } 42 PaymentRequest* request() { return request_; }
40 43
41 // The dialog that contains and owns this object. 44 // The dialog that contains and owns this object.
42 // Caller should not take ownership of the result. 45 // Caller should not take ownership of the result.
43 PaymentRequestDialogView* dialog() { return dialog_; } 46 PaymentRequestDialogView* dialog() { return dialog_; }
44 47
45 protected: 48 protected:
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 PaymentRequest* request_; 86 PaymentRequest* request_;
84 // Not owned. Will outlive this. 87 // Not owned. Will outlive this.
85 PaymentRequestDialogView* dialog_; 88 PaymentRequestDialogView* dialog_;
86 89
87 DISALLOW_COPY_AND_ASSIGN(PaymentRequestSheetController); 90 DISALLOW_COPY_AND_ASSIGN(PaymentRequestSheetController);
88 }; 91 };
89 92
90 } // namespace payments 93 } // namespace payments
91 94
92 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_SHEET_CONTROLLER_H_ 95 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_SHEET_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698