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 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_ | |
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "base/strings/string16.h" | |
11 | |
12 namespace views { | |
13 class View; | |
14 } | |
15 | |
16 namespace payments { | |
17 | |
18 // Creates a view to be displayed in the PaymentRequestDialog. |title| is the | |
19 // text displayed on top of the dialog and |content_view| is displayed between | |
20 // the title and the pay/cancel buttons. | |
21 std::unique_ptr<views::View> CreatePaymentView( | |
22 const base::string16& title, views::View* content_view); | |
please use gerrit instead
2016/12/15 19:11:15
Who owns the content_view?
anthonyvd
2016/12/15 19:55:06
The returned view does. Made that clearer with a c
please use gerrit instead
2016/12/15 20:29:33
This is great, thank you.
| |
23 | |
24 } // namespace payments | |
25 | |
26 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_VIEWS_UTIL_H_ | |
OLD | NEW |