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

Issue 2759253002: [Web Payments] Implement item selection in lists. (Closed)

Created:
3 years, 9 months ago by anthonyvd
Modified:
3 years, 9 months ago
Reviewers:
Mathieu
CC:
chromium-reviews, darin-cc_chromium.org, gogerald+paymentswatch_chromium.org, jam, mahmadi+paymentswatch_chromium.org, rouslan+payments_chromium.org, sebsg+paymentswatch_chromium.org, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Web Payments] Implement item selection in lists. This change implements item selection in all lists in PaymentRequest dialog sheets. It also implements updating the Payment Sheet after a selection changes. BUG=703302 TEST=unit_tests,browsertests Review-Url: https://codereview.chromium.org/2759253002 Cr-Commit-Position: refs/heads/master@{#458553} Committed: https://chromium.googlesource.com/chromium/src/+/0116ce334c021757db311c867d96bb56faeda1b7

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address feedback #

Patch Set 3 : Assert back navigation in browser tests. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -50 lines) Patch
M chrome/browser/ui/views/payments/payment_method_view_controller.cc View 1 2 4 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc View 1 2 1 chunk +11 lines, -4 lines 2 comments Download
M chrome/browser/ui/views/payments/payment_request_item_list.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_item_list.cc View 1 5 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.cc View 5 chunks +35 lines, -23 lines 0 comments Download
M chrome/browser/ui/views/payments/profile_list_view_controller.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/profile_list_view_controller.cc View 1 7 chunks +31 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/payments/shipping_option_view_controller.cc View 1 5 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/payments/view_stack.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/payments/content/payment_request_state.h View 2 chunks +4 lines, -0 lines 0 comments Download
M components/payments/content/payment_request_state.cc View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
anthonyvd
Hi Math, PTAL? With this change, it actually becomes possible to change selected values from ...
3 years, 9 months ago (2017-03-20 19:30:47 UTC) #3
Mathieu
Looks great, few questions. https://codereview.chromium.org/2759253002/diff/20001/chrome/browser/ui/views/payments/payment_request_item_list.cc File chrome/browser/ui/views/payments/payment_request_item_list.cc (right): https://codereview.chromium.org/2759253002/diff/20001/chrome/browser/ui/views/payments/payment_request_item_list.cc#newcode117 chrome/browser/ui/views/payments/payment_request_item_list.cc:117: list()->SelectItem(this, /*go_back=*/true); Do you think ...
3 years, 9 months ago (2017-03-21 13:56:59 UTC) #4
Mathieu
Also, I see mentions of "unit_tests, browsertests" but no files are present. Would be great ...
3 years, 9 months ago (2017-03-21 14:05:47 UTC) #5
anthonyvd
Feedback addressed, thanks! Re: tests. The list code is already tested, hence the mention. The ...
3 years, 9 months ago (2017-03-21 14:56:07 UTC) #6
Mathieu
On 2017/03/21 14:56:07, anthonyvd wrote: > Feedback addressed, thanks! > > Re: tests. The list ...
3 years, 9 months ago (2017-03-21 15:07:15 UTC) #7
anthonyvd
Relevant browser test updated. PTAL!
3 years, 9 months ago (2017-03-21 19:04:12 UTC) #8
Mathieu
lgtm with a UX question https://codereview.chromium.org/2759253002/diff/60001/chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc File chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc (right): https://codereview.chromium.org/2759253002/diff/60001/chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc#newcode105 chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc:105: ClickOnDialogViewAndWait(list_view->child_at(1)); Do we not ...
3 years, 9 months ago (2017-03-21 19:27:36 UTC) #9
anthonyvd
https://codereview.chromium.org/2759253002/diff/60001/chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc File chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc (right): https://codereview.chromium.org/2759253002/diff/60001/chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc#newcode105 chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc:105: ClickOnDialogViewAndWait(list_view->child_at(1)); On 2017/03/21 at 19:27:36, Mathieu Perreault wrote: > ...
3 years, 9 months ago (2017-03-21 20:29:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2759253002/60001
3 years, 9 months ago (2017-03-21 20:29:50 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 21:29:55 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/0116ce334c021757db311c867d96...

Powered by Google App Engine
This is Rietveld 408576698