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

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

Issue 2446093004: [Web Payments] Initial plumb of Payment Request dialog (Closed)
Patch Set: Replaced my flag with existing one Created 4 years, 2 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/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..404a8b76b07eb7e62d2818c6bb481e3aab9cae6a
--- /dev/null
+++ b/chrome/browser/payments/ui/payment_request_dialog.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
please use gerrit instead 2016/11/04 21:58:15 Ditto
Kevin Bailey 2016/11/09 16:25:21 Done.
+// 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 "ui/gfx/canvas.h"
+#include "ui/views/controls/label.h"
+#include "ui/views/layout/box_layout.h"
+#include "ui/views/layout/fill_layout.h"
+#include "ui/views/window/dialog_delegate.h"
+
+// TODO: This should be more specific to the stage of payment collection.
+class PaymentRequestDialog : public views::DialogDelegateView {
+ public:
+ PaymentRequestDialog();
+
+ ui::ModalType GetModalType() const override;
+
+ // We might be able to get rid of this later.
+ gfx::Size GetPreferredSize() const override;
+
+ ~PaymentRequestDialog() override;
please use gerrit instead 2016/11/04 21:58:15 Next to constructor, please.
Kevin Bailey 2016/11/09 16:25:21 Done.
+
+ private:
+ std::unique_ptr<views::Label> label_;
+
+ DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialog);
+};
+
+#endif // CHROME_BROWSER_PAYMENTS_UI_PAYMENT_REQUEST_DIALOG_H_

Powered by Google App Engine
This is Rietveld 408576698