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

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

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.cc
diff --git a/chrome/browser/payments/ui/payment_request_dialog.cc b/chrome/browser/payments/ui/payment_request_dialog.cc
new file mode 100644
index 0000000000000000000000000000000000000000..775f389198ec7eaa844f5e3191c798916e674bef
--- /dev/null
+++ b/chrome/browser/payments/ui/payment_request_dialog.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
please use gerrit instead 2016/11/04 21:58:14 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.
+
+#include "base/strings/utf_string_conversions.h"
+#include "chrome/browser/payments/ui/payment_request_dialog.h"
+
+PaymentRequestDialog::PaymentRequestDialog()
+ : label_(new views::Label(base::ASCIIToUTF16("Payments dialog"))) {
please use gerrit instead 2016/11/04 21:58:14 i18n
Kevin Bailey 2016/11/09 16:25:21 This label is already removed in the new branch, m
+ SetLayoutManager(new views::FillLayout());
+ AddChildView(label_.get());
+}
+
+ui::ModalType PaymentRequestDialog::GetModalType() const {
+ return ui::MODAL_TYPE_CHILD;
+}
+
+gfx::Size PaymentRequestDialog::GetPreferredSize() const {
+ gfx::Size ps = label_->GetPreferredSize();
+ ps.set_width(ps.width() + 200);
please use gerrit instead 2016/11/04 21:58:14 constant?
Kevin Bailey 2016/11/09 16:25:21 It will go away, to be replaced by asking each ele
+ ps.set_height(ps.height() + 200);
+ return ps;
+}
+
+PaymentRequestDialog::~PaymentRequestDialog() {}

Powered by Google App Engine
This is Rietveld 408576698