Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // 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.
| |
| 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"))) { | |
|
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
| |
| 10 SetLayoutManager(new views::FillLayout()); | |
| 11 AddChildView(label_.get()); | |
| 12 } | |
| 13 | |
| 14 ui::ModalType PaymentRequestDialog::GetModalType() const { | |
| 15 return ui::MODAL_TYPE_CHILD; | |
| 16 } | |
| 17 | |
| 18 gfx::Size PaymentRequestDialog::GetPreferredSize() const { | |
| 19 gfx::Size ps = label_->GetPreferredSize(); | |
| 20 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
| |
| 21 ps.set_height(ps.height() + 200); | |
| 22 return ps; | |
| 23 } | |
| 24 | |
| 25 PaymentRequestDialog::~PaymentRequestDialog() {} | |
| OLD | NEW |