Index: chrome/browser/ui/views/payments/payment_request_sheet_controller.h |
diff --git a/chrome/browser/ui/views/payments/payment_request_sheet_controller.h b/chrome/browser/ui/views/payments/payment_request_sheet_controller.h |
index ac8e917015305687d5b0587f933c04c444b6d2e2..2a790566ad848925a21f53766645d1e570d5ae0c 100644 |
--- a/chrome/browser/ui/views/payments/payment_request_sheet_controller.h |
+++ b/chrome/browser/ui/views/payments/payment_request_sheet_controller.h |
@@ -34,6 +34,21 @@ class PaymentRequestSheetController : public views::ButtonListener { |
PaymentRequestDialogView* dialog); |
~PaymentRequestSheetController() override; |
+ // Creates a view to be displayed in the PaymentRequestDialog. The header view |
+ // is the view displayed on top of the dialog, containing title, (optional) |
+ // back button, and close buttons. |
+ // The content view is displayed between the header view and the pay/cancel |
+ // buttons. Also adds the footer, returned by CreateFooterView(), which is |
+ // clamped to the bottom of the containing view. The returned view takes |
+ // ownership of the header, the content, and the footer. |
+ // +---------------------------+ |
+ // | HEADER VIEW | |
+ // +---------------------------+ |
+ // | CONTENT | |
+ // | VIEW | |
+ // +---------------------------+ |
+ // | EXTRA VIEW | PAY | CANCEL | <-- footer |
+ // +---------------------------+ |
std::unique_ptr<views::View> CreateView(); |
PaymentRequestSpec* spec() { return spec_; } |
@@ -106,23 +121,6 @@ class PaymentRequestSheetController : public views::ButtonListener { |
virtual bool GetSheetId(DialogViewID* sheet_id); |
private: |
- // Creates a view to be displayed in the PaymentRequestDialog. |
- // |header_view| is the view displayed on top of the dialog, containing title, |
- // (optional) back button, and close buttons. |
- // |content_view| is displayed between |header_view| and the pay/cancel |
- // buttons. Also adds the footer, returned by CreateFooterView(), which is |
- // clamped to the bottom of the containing view. The returned view takes |
- // ownership of |header_view|, |content_view|, and the footer. |
- // +---------------------------+ |
- // | HEADER VIEW | |
- // +---------------------------+ |
- // | CONTENT | |
- // | VIEW | |
- // +---------------------------+ |
- // | EXTRA VIEW | PAY | CANCEL | <-- footer |
- // +---------------------------+ |
- std::unique_ptr<views::View> CreatePaymentView(); |
- |
// Called when the Enter accelerator is pressed. Perform the action associated |
// with the primary button and returns true if it's enabled, returns false |
// otherwise. |