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

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: Replaced my flag with existing one 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 (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() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698