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

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

Issue 2676663002: [Payments] Implements the credit card editor for Desktop UI (Closed)
Patch Set: Initial 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
(Empty)
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
3 // found in the LICENSE file.
4
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_
7
8 #include <memory>
9 #include <vector>
please use gerrit instead 2017/02/02 20:19:02 Generally it's not necessary to add includes for t
Mathieu 2017/02/03 02:18:57 Done.
10
11 #include "base/macros.h"
12 #include "chrome/browser/ui/views/payments/editor_view_controller.h"
13
14 namespace payments {
15
16 class PaymentRequest;
17 class PaymentRequestDialogView;
18
19 // Credit card editor screen of the Payment Request flow.
20 class CreditCardEditorViewController : public EditorViewController {
21 public:
22 // Does not take ownership of the arguments, which should outlive this object.
please use gerrit instead 2017/02/02 20:19:02 Love this comment! :-D
Mathieu 2017/02/03 02:18:57 got it from a wise person
23 CreditCardEditorViewController(PaymentRequest* request,
24 PaymentRequestDialogView* dialog);
25 ~CreditCardEditorViewController() override;
26
27 // EditorViewController implementation.
28 std::vector<std::unique_ptr<EditorField>> GetFieldDefinitions() override;
29 bool ValidateModelAndSave() override;
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(CreditCardEditorViewController);
33 };
34
35 } // namespace payments
36
37 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698