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

Side by Side Diff: chrome/browser/ui/views/payments/credit_card_editor_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
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "chrome/browser/ui/views/payments/editor_view_controller.h" 14 #include "chrome/browser/ui/views/payments/editor_view_controller.h"
15 #include "chrome/browser/ui/views/payments/validation_delegate.h" 15 #include "chrome/browser/ui/views/payments/validation_delegate.h"
16 #include "ui/base/models/simple_combobox_model.h" 16 #include "ui/base/models/simple_combobox_model.h"
17 17
18 namespace payments { 18 namespace payments {
19 19
20 class PaymentRequest; 20 class PaymentRequestSpec;
21 class PaymentRequestState;
21 class PaymentRequestDialogView; 22 class PaymentRequestDialogView;
22 23
23 // Credit card editor screen of the Payment Request flow. 24 // Credit card editor screen of the Payment Request flow.
24 class CreditCardEditorViewController : public EditorViewController { 25 class CreditCardEditorViewController : public EditorViewController {
25 public: 26 public:
26 // Does not take ownership of the arguments, which should outlive this object. 27 // Does not take ownership of the arguments, which should outlive this object.
27 CreditCardEditorViewController(PaymentRequest* request, 28 CreditCardEditorViewController(PaymentRequestSpec* spec,
29 PaymentRequestState* state,
28 PaymentRequestDialogView* dialog); 30 PaymentRequestDialogView* dialog);
29 ~CreditCardEditorViewController() override; 31 ~CreditCardEditorViewController() override;
30 32
31 // EditorViewController: 33 // EditorViewController:
32 std::unique_ptr<views::View> CreateHeaderView() override; 34 std::unique_ptr<views::View> CreateHeaderView() override;
33 int GetViewHeaderTitleId() const override; 35 int GetViewHeaderTitleId() const override;
34 std::vector<EditorField> GetFieldDefinitions() override; 36 std::vector<EditorField> GetFieldDefinitions() override;
35 bool ValidateModelAndSave() override; 37 bool ValidateModelAndSave() override;
36 std::unique_ptr<ValidationDelegate> CreateValidationDelegate( 38 std::unique_ptr<ValidationDelegate> CreateValidationDelegate(
37 const EditorField& field) override; 39 const EditorField& field) override;
(...skipping 28 matching lines...) Expand all
66 68
67 DISALLOW_COPY_AND_ASSIGN(CreditCardValidationDelegate); 69 DISALLOW_COPY_AND_ASSIGN(CreditCardValidationDelegate);
68 }; 70 };
69 71
70 DISALLOW_COPY_AND_ASSIGN(CreditCardEditorViewController); 72 DISALLOW_COPY_AND_ASSIGN(CreditCardEditorViewController);
71 }; 73 };
72 74
73 } // namespace payments 75 } // namespace payments
74 76
75 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H _ 77 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698