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

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

Issue 2747943004: [Web Payments] Add the shipping options sheet. (Closed)
Patch Set: Address comments. Created 3 years, 9 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/shipping_option_view_controller.h
diff --git a/chrome/browser/ui/views/payments/shipping_option_view_controller.h b/chrome/browser/ui/views/payments/shipping_option_view_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..e3f7827c4d819ce1c9934a9c159b09e36000d13a
--- /dev/null
+++ b/chrome/browser/ui/views/payments/shipping_option_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_SHIPPING_OPTION_VIEW_CONTROLLER_H_
+#define CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_OPTION_VIEW_CONTROLLER_H_
+
+#include "base/macros.h"
+#include "chrome/browser/ui/views/payments/payment_request_item_list.h"
+#include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h"
+
+namespace payments {
+
+class ShippingOptionViewController : public PaymentRequestSheetController {
+ public:
+ ShippingOptionViewController(PaymentRequest* request,
+ PaymentRequestDialogView* dialog);
+ ~ShippingOptionViewController() override;
+
+ // PaymentRequestSheetController:
+ std::unique_ptr<views::View> CreateView() override;
+
+ private:
+ // PaymentRequestSheetController:
+ std::unique_ptr<views::View> CreateExtraFooterView() override;
+
+ PaymentRequestItemList shipping_option_list_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShippingOptionViewController);
+};
+
+} // namespace payments
+
+#endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_OPTION_VIEW_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698