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

Side by Side Diff: components/payments/payment_request_dialog.h

Issue 2649683002: [Payments] Improve the closing of the PR dialog. (Closed)
Patch Set: Initial Created 3 years, 11 months 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 2017 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 COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DIALOG_H_
6 #define COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DIALOG_H_
7
8 namespace payments {
9
10 // Used to interact with a cross-platform Payment Request dialog.
11 class PaymentRequestDialog {
12 public:
13 virtual ~PaymentRequestDialog() {}
14
15 virtual void ShowDialog() = 0;
16
17 // |propagate_to_renderer| indicates whether to warn the renderer of the
18 // dialog closure. Therefore, if the dialog is being closed as a result of a
19 // renderer event, |propagate_to_renderer| should be false (the renderer is
20 // aware). On the other hand if the dialog is closed due to a user gesture,
21 // the renderer needs to know.
22 virtual void CloseDialog(bool propagate_to_renderer) = 0;
23 };
24
25 } // namespace payments
26
27 #endif // COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DIALOG_H_
OLDNEW
« components/payments/payment_request.cc ('K') | « components/payments/payment_request_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698