|
|
[Payments] Improve the closing of the PR dialog.
Various changes around the dialog's disappearance.
* The PaymentRequest object, through its delegate, can now close the
dialog. This will need to happen if the Mojo pipe is closed by the
renderer (can happen on failure or success of the PR logic).
* Similarly, when the user closes the dialog through an explicit
action, the PaymentRequest object will inform the renderer and
subsequently self destruct (this is not new but is improved)
* Some logic is added to avoid cycles: if the dialog is closing and it
informs PaymentRequest, PaymentRequest will not ask to close it again
(and vice versa). This is done through closing the bindings.
* abort() is implemented, it currently simply returns onAbort(true) to
the caller (to be improved).
* As a result of the Mojo connection closing on navigation, reload,
etc, the dialog will now close too.
* PaymentRequestDialog is renamed PaymentRequestDialogView and
implements a new interface, PaymentRequestDialog.
* The tests are now a WidgetObserver to be warned of all possible
closures of the dialog.
BUG= 683731, 679245
TEST=PaymentRequest interactive_ui_tests
Review-Url: https://codereview.chromium.org/2649683002
Cr-Commit-Position: refs/heads/master@{#445652}
Committed: https://chromium.googlesource.com/chromium/src/+/f4bc50e24731fad2ef8ac320f6347aa60fe70532
Total comments: 12
Total comments: 10
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+316 lines, -338 lines) |
Patch |
 |
M |
chrome/browser/payments/chrome_payment_request_delegate.h
|
View
|
|
1 chunk |
+9 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/payments/chrome_payment_request_delegate.cc
|
View
|
1
2
|
1 chunk |
+14 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser_dialogs.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/payments/order_summary_view_controller.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/payments/order_summary_view_controller.cc
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/payments/payment_method_view_controller.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/payments/payment_method_view_controller.cc
|
View
|
1
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/ui/views/payments/payment_request_dialog.h
|
View
|
|
1 chunk |
+0 lines, -82 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/ui/views/payments/payment_request_dialog.cc
|
View
|
|
1 chunk |
+0 lines, -145 lines |
0 comments
|
Download
|
 |
A + |
chrome/browser/ui/views/payments/payment_request_dialog_view.h
|
View
|
1
2
3
|
4 chunks |
+22 lines, -19 lines |
0 comments
|
Download
|
 |
A + |
chrome/browser/ui/views/payments/payment_request_dialog_view.cc
|
View
|
1
2
3
|
6 chunks |
+34 lines, -34 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/payments/payment_request_interactive_uitest.cc
|
View
|
1
2
3
|
2 chunks |
+62 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.h
|
View
|
1
2
3
|
5 chunks |
+21 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc
|
View
|
1
2
3
|
3 chunks |
+24 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/payments/payment_request_sheet_controller.h
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/payments/payment_sheet_view_controller.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h
|
View
|
|
2 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
|
View
|
1
2
3
|
1 chunk |
+19 lines, -6 lines |
0 comments
|
Download
|
 |
M |
components/payments/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/payments/payment_request.h
|
View
|
1
|
1 chunk |
+11 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/payments/payment_request.cc
|
View
|
1
|
4 chunks |
+39 lines, -9 lines |
0 comments
|
Download
|
 |
M |
components/payments/payment_request_delegate.h
|
View
|
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
A |
components/payments/payment_request_dialog.h
|
View
|
1
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
Total messages: 30 (20 generated)
|