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

Side by Side Diff: chrome/browser/payments/ui/payment_request_dialog.cc

Issue 2446093004: [Web Payments] Initial plumb of Payment Request dialog (Closed)
Patch Set: Remove mystery strings 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 unified diff | Download patch
OLDNEW
(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 #include "base/strings/utf_string_conversions.h"
6 #include "chrome/browser/payments/ui/payment_request_dialog.h"
7
8 PaymentRequestDialog::PaymentRequestDialog()
9 : label_(new views::Label(base::ASCIIToUTF16("Payments dialog"))) {
10 SetLayoutManager(new views::FillLayout());
11 AddChildView(label_.get());
12 }
13
14 PaymentRequestDialog::~PaymentRequestDialog() {}
15
16 ui::ModalType PaymentRequestDialog::GetModalType() const {
17 return ui::MODAL_TYPE_CHILD;
18 }
19
20 gfx::Size PaymentRequestDialog::GetPreferredSize() const {
21 gfx::Size ps = label_->GetPreferredSize();
22 ps.set_width(ps.width() + 200);
Lei Zhang 2016/11/09 18:08:56 ps.Enlarge(200, 200);
Kevin Bailey 2016/11/15 14:36:33 Done, thanks.
23 ps.set_height(ps.height() + 200);
24 return ps;
25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698