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

Unified Diff: chrome/browser/payments/ui/payment_request_dialog.h

Issue 2446093004: [Web Payments] Initial plumb of Payment Request dialog (Closed)
Patch Set: Handle new member function Created 4 years, 1 month 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/payments/ui/payment_request_dialog.h
diff --git a/chrome/browser/payments/ui/payment_request_dialog.h b/chrome/browser/payments/ui/payment_request_dialog.h
new file mode 100644
index 0000000000000000000000000000000000000000..6834c11bccaa5a141047be02d6f5259ce2331388
--- /dev/null
+++ b/chrome/browser/payments/ui/payment_request_dialog.h
@@ -0,0 +1,38 @@
+// Copyright 2016 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_PAYMENTS_UI_PAYMENT_REQUEST_DIALOG_H_
+#define CHROME_BROWSER_PAYMENTS_UI_PAYMENT_REQUEST_DIALOG_H_
+
+#include "components/payments/payment_request.mojom.h"
+#include "ui/views/controls/label.h"
+#include "ui/views/window/dialog_delegate.h"
+
+namespace payments {
+
+class PaymentRequestDialog : public views::DialogDelegateView {
+ public:
+ explicit PaymentRequestDialog(
+ payments::mojom::PaymentRequestClientPtr client);
+ ~PaymentRequestDialog() override;
+
+ // views::WidgetDelegate
+ ui::ModalType GetModalType() const override;
+
+ // views::View
+ gfx::Size GetPreferredSize() const override;
+
+ // views::DialogDelegate
+ bool Cancel() override;
+
+ private:
+ payments::mojom::PaymentRequestClientPtr client_;
+ std::unique_ptr<views::Label> label_;
+
+ DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialog);
+};
+
+} // namespace payments
+
+#endif // CHROME_BROWSER_PAYMENTS_UI_PAYMENT_REQUEST_DIALOG_H_
« no previous file with comments | « chrome/browser/payments/payment_request_impl.cc ('k') | chrome/browser/payments/ui/payment_request_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698