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

Unified 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: formatting 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/credit_card_editor_view_controller.h
diff --git a/chrome/browser/ui/views/payments/credit_card_editor_view_controller.h b/chrome/browser/ui/views/payments/credit_card_editor_view_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..c30a3e67a9c5957910ac4baaff8996ac608c65ee
--- /dev/null
+++ b/chrome/browser/ui/views/payments/credit_card_editor_view_controller.h
@@ -0,0 +1,34 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_
+#define CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_
+
+#include "base/macros.h"
+#include "chrome/browser/ui/views/payments/editor_view_controller.h"
+
+namespace payments {
+
+class PaymentRequest;
+class PaymentRequestDialogView;
+
+// Credit card editor screen of the Payment Request flow.
+class CreditCardEditorViewController : public EditorViewController {
+ public:
+ // Does not take ownership of the arguments, which should outlive this object.
+ CreditCardEditorViewController(PaymentRequest* request,
+ PaymentRequestDialogView* dialog);
+ ~CreditCardEditorViewController() override;
+
+ // EditorViewController implementation.
+ std::vector<EditorField> GetFieldDefinitions() override;
+ bool ValidateModelAndSave() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CreditCardEditorViewController);
+};
+
+} // namespace payments
+
+#endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | 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