Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_PAYMENTS_UI_PAYMENT_REQUEST_DIALOG_H_ | |
| 6 #define CHROME_BROWSER_PAYMENTS_UI_PAYMENT_REQUEST_DIALOG_H_ | |
| 7 | |
| 8 #include "components/payments/payment_request.mojom.h" | |
| 9 #include "ui/views/controls/label.h" | |
| 10 #include "ui/views/window/dialog_delegate.h" | |
| 11 | |
| 12 namespace payments { | |
| 13 | |
| 14 class PaymentRequestDialog : public views::DialogDelegateView { | |
| 15 public: | |
| 16 explicit PaymentRequestDialog( | |
| 17 payments::mojom::PaymentRequestClientPtr client); | |
| 18 ~PaymentRequestDialog() override; | |
| 19 | |
| 20 ui::ModalType GetModalType() const override; | |
|
Lei Zhang
2016/11/15 19:20:47
style: groups the overrides together:
// views::D
Kevin Bailey
2016/11/15 20:33:55
I separated them to indicate that they all came fr
Lei Zhang
2016/11/15 21:25:06
Oh, I didn't the realize the DialogDelegateView hi
| |
| 21 | |
| 22 gfx::Size GetPreferredSize() const override; | |
| 23 | |
| 24 bool Cancel() override; | |
| 25 | |
| 26 private: | |
| 27 payments::mojom::PaymentRequestClientPtr client_; | |
| 28 std::unique_ptr<views::Label> label_; | |
| 29 | |
| 30 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialog); | |
| 31 }; | |
| 32 | |
| 33 } // namespace payments | |
| 34 | |
| 35 #endif // CHROME_BROWSER_PAYMENTS_UI_PAYMENT_REQUEST_DIALOG_H_ | |
| OLD | NEW |