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

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

Issue 2673753005: [Payments] Basic validation in the credit card editor. (Closed)
Patch Set: more tests 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 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 <vector>
please use gerrit instead 2017/02/07 21:55:22 Generally it's not necessary to include heads when
Mathieu 2017/02/08 02:03:25 Done.
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "chrome/browser/ui/views/payments/editor_view_controller.h" 11 #include "chrome/browser/ui/views/payments/editor_view_controller.h"
10 12
11 namespace payments { 13 namespace payments {
12 14
13 class PaymentRequest; 15 class PaymentRequest;
14 class PaymentRequestDialogView; 16 class PaymentRequestDialogView;
15 17
16 // Credit card editor screen of the Payment Request flow. 18 // Credit card editor screen of the Payment Request flow.
17 class CreditCardEditorViewController : public EditorViewController { 19 class CreditCardEditorViewController : public EditorViewController {
18 public: 20 public:
19 // 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.
20 CreditCardEditorViewController(PaymentRequest* request, 22 CreditCardEditorViewController(PaymentRequest* request,
21 PaymentRequestDialogView* dialog); 23 PaymentRequestDialogView* dialog);
22 ~CreditCardEditorViewController() override; 24 ~CreditCardEditorViewController() override;
23 25
24 // EditorViewController implementation. 26 // EditorViewController implementation.
25 std::vector<EditorField> GetFieldDefinitions() override; 27 std::vector<EditorField> GetFieldDefinitions() override;
26 bool ValidateModelAndSave() override; 28 bool ValidateModelAndSave() override;
27 29
28 private: 30 private:
29 DISALLOW_COPY_AND_ASSIGN(CreditCardEditorViewController); 31 DISALLOW_COPY_AND_ASSIGN(CreditCardEditorViewController);
30 }; 32 };
31 33
32 } // namespace payments 34 } // namespace payments
33 35
34 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H _ 36 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698