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

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: Initial Created 3 years, 11 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
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..4f1d395a817bcab246af6e192bd6aeb9ce037d36
--- /dev/null
+++ b/chrome/browser/ui/views/payments/credit_card_editor_view_controller.h
@@ -0,0 +1,37 @@
+// 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 <memory>
+#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.
+
+#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.
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
+ CreditCardEditorViewController(PaymentRequest* request,
+ PaymentRequestDialogView* dialog);
+ ~CreditCardEditorViewController() override;
+
+ // EditorViewController implementation.
+ std::vector<std::unique_ptr<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_

Powered by Google App Engine
This is Rietveld 408576698