| 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 #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); |
| 23 ps.set_height(ps.height() + 200); |
| 24 return ps; |
| 25 } |
| OLD | NEW |