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

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

Issue 2849523003: Add billing address as a mandatory field of Payments credit cards. (Closed)
Patch Set: Merge branch 'master' into billing Created 3 years, 7 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_CONTACT_INFO_EDITOR_VIEW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_CONTACT_INFO_EDITOR_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_CONTACT_INFO_EDITOR_VIEW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_CONTACT_INFO_EDITOR_VIEW_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 namespace payments { 21 namespace payments {
22 22
23 class ContactInfoEditorViewController : public EditorViewController { 23 class ContactInfoEditorViewController : public EditorViewController {
24 public: 24 public:
25 // Does not take ownership of the arguments, which should outlive this object. 25 // Does not take ownership of the arguments, which should outlive this object.
26 // Passing nullptr as |profile| indicates that we are editing a new profile; 26 // Passing nullptr as |profile| indicates that we are editing a new profile;
27 // other arguments should never be null. 27 // other arguments should never be null.
28 ContactInfoEditorViewController(PaymentRequestSpec* spec, 28 ContactInfoEditorViewController(PaymentRequestSpec* spec,
29 PaymentRequestState* state, 29 PaymentRequestState* state,
30 PaymentRequestDialogView* dialog, 30 PaymentRequestDialogView* dialog,
31 BackNavigationType back_navigation_type,
31 autofill::AutofillProfile* profile); 32 autofill::AutofillProfile* profile);
32 ~ContactInfoEditorViewController() override; 33 ~ContactInfoEditorViewController() override;
33 34
34 // EditorViewController: 35 // EditorViewController:
35 std::unique_ptr<views::View> CreateHeaderView() override;
36 std::vector<EditorField> GetFieldDefinitions() override; 36 std::vector<EditorField> GetFieldDefinitions() override;
37 base::string16 GetInitialValueForType( 37 base::string16 GetInitialValueForType(
38 autofill::ServerFieldType type) override; 38 autofill::ServerFieldType type) override;
39 bool ValidateModelAndSave() override; 39 bool ValidateModelAndSave() override;
40 std::unique_ptr<ValidationDelegate> CreateValidationDelegate( 40 std::unique_ptr<ValidationDelegate> CreateValidationDelegate(
41 const EditorField& field) override; 41 const EditorField& field) override;
42 std::unique_ptr<ui::ComboboxModel> GetComboboxModelForType( 42 std::unique_ptr<ui::ComboboxModel> GetComboboxModelForType(
43 const autofill::ServerFieldType& type) override; 43 const autofill::ServerFieldType& type) override;
44 44
45 protected: 45 protected:
(...skipping 26 matching lines...) Expand all
72 EditorField field_; 72 EditorField field_;
73 // Outlives this class. Never null. 73 // Outlives this class. Never null.
74 EditorViewController* controller_; 74 EditorViewController* controller_;
75 const std::string& locale_; 75 const std::string& locale_;
76 }; 76 };
77 }; 77 };
78 78
79 } // namespace payments 79 } // namespace payments
80 80
81 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CONTACT_INFO_EDITOR_VIEW_CONTROLLER_ H_ 81 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CONTACT_INFO_EDITOR_VIEW_CONTROLLER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698