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

Unified Diff: chrome/browser/ui/views/payments/payment_sheet_view_controller.h

Issue 2592833002: [WebPayments] Start populating the Payment Sheet. (Closed)
Patch Set: Address comments. 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/payment_sheet_view_controller.h
diff --git a/chrome/browser/ui/views/payments/payment_sheet_view_controller.h b/chrome/browser/ui/views/payments/payment_sheet_view_controller.h
index 85edb0c664868a0c64e1e13e4297d3f9e11690ba..d7505ca0e062e814e0b77f3ed7858ff454e9d666 100644
--- a/chrome/browser/ui/views/payments/payment_sheet_view_controller.h
+++ b/chrome/browser/ui/views/payments/payment_sheet_view_controller.h
@@ -7,7 +7,7 @@
#include "base/macros.h"
#include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h"
-#include "ui/views/controls/button/button.h"
+#include "ui/views/controls/button/vector_icon_button_delegate.h"
namespace payments {
@@ -17,7 +17,7 @@ class PaymentRequestDialog;
// The PaymentRequestSheetController subtype for the Payment Sheet screen of the
// Payment Request dialog.
class PaymentSheetViewController : public PaymentRequestSheetController,
- public views::ButtonListener {
+ public views::VectorIconButtonDelegate {
public:
// Does not take ownership of the arguments, which should outlive this object.
PaymentSheetViewController(PaymentRequestImpl* impl,
@@ -28,9 +28,12 @@ class PaymentSheetViewController : public PaymentRequestSheetController,
std::unique_ptr<views::View> CreateView() override;
private:
- // views::ButtonListener:
+ // views::VectorIconButtonDelegate:
void ButtonPressed(views::Button* sender, const ui::Event& event) override;
+ std::unique_ptr<views::View> CreateOrderSummarySectionContent();
+ std::unique_ptr<views::View> CreatePaymentSheetSummaryRow();
+
DISALLOW_COPY_AND_ASSIGN(PaymentSheetViewController);
};

Powered by Google App Engine
This is Rietveld 408576698