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

Issue 2715213005: [Payments] Add the pay button, and control its enabled state (Closed)

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

Description

[Payments] Add the pay button, and control its enabled state Depending on the data requested by the merchant, the pay button may or may not be disabled. More validation and logic to follow. BUG=696733 TEST=PaymentSheet... interactive_ui_tests Review-Url: https://codereview.chromium.org/2715213005 Cr-Commit-Position: refs/heads/master@{#453781} Committed: https://chromium.googlesource.com/chromium/src/+/d4be8de802d4fd6e2b8ec7a85253eae7db69c15e

Patch Set 1 #

Patch Set 2 : rebase + refactor tests #

Patch Set 3 : tweak #

Total comments: 2

Patch Set 4 : observers #

Patch Set 5 : clean the .h #

Total comments: 8

Patch Set 6 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -60 lines) Patch
M chrome/browser/payments/chrome_payment_request_delegate.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/payments/chrome_payment_request_delegate.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_method_view_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/payments/payment_method_view_controller_interactive_uitest.cc View 1 2 chunks +4 lines, -30 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.h View 1 2 3 4 5 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc View 1 4 chunks +46 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_sheet_controller.cc View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_views_util.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.h View 1 2 3 4 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.cc View 1 2 3 4 5 6 chunks +25 lines, -3 lines 0 comments Download
A chrome/browser/ui/views/payments/payment_sheet_view_controller_interactive_uitest.cc View 1 1 chunk +122 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/payments/content/payment_request.h View 1 2 3 4 7 chunks +52 lines, -17 lines 0 comments Download
M components/payments/content/payment_request.cc View 1 2 3 4 5 8 chunks +97 lines, -8 lines 0 comments Download
M components/payments/content/payment_request_delegate.h View 1 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
Mathieu
Hey, it's 5PM review mailing time! PTAL ;)
3 years, 9 months ago (2017-02-27 21:54:09 UTC) #3
anthonyvd
https://codereview.chromium.org/2715213005/diff/60001/chrome/browser/ui/views/payments/payment_request_dialog_view.cc File chrome/browser/ui/views/payments/payment_request_dialog_view.cc (right): https://codereview.chromium.org/2715213005/diff/60001/chrome/browser/ui/views/payments/payment_request_dialog_view.cc#newcode146 chrome/browser/ui/views/payments/payment_request_dialog_view.cc:146: void PaymentRequestDialogView::UpdatePayButtonState(bool enabled) { I don't think this pattern ...
3 years, 9 months ago (2017-02-28 17:16:35 UTC) #8
Mathieu
Have a look at this version? https://codereview.chromium.org/2715213005/diff/60001/chrome/browser/ui/views/payments/payment_request_dialog_view.cc File chrome/browser/ui/views/payments/payment_request_dialog_view.cc (right): https://codereview.chromium.org/2715213005/diff/60001/chrome/browser/ui/views/payments/payment_request_dialog_view.cc#newcode146 chrome/browser/ui/views/payments/payment_request_dialog_view.cc:146: void PaymentRequestDialogView::UpdatePayButtonState(bool enabled) ...
3 years, 9 months ago (2017-02-28 19:42:39 UTC) #9
anthonyvd
lgtm % a couple comments. Thanks for the changes! https://codereview.chromium.org/2715213005/diff/120001/chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc File chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc (right): https://codereview.chromium.org/2715213005/diff/120001/chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc#newcode188 chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc:188: ...
3 years, 9 months ago (2017-02-28 21:07:18 UTC) #12
Mathieu
Thanks, will submit https://codereview.chromium.org/2715213005/diff/120001/chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc File chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc (right): https://codereview.chromium.org/2715213005/diff/120001/chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc#newcode188 chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc:188: void PaymentRequestInteractiveTestBase::AddCreditCard( On 2017/02/28 21:07:18, anthonyvd ...
3 years, 9 months ago (2017-02-28 21:43:27 UTC) #13
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/2715213005/100002
3 years, 9 months ago (2017-02-28 21:44:14 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/220489)
3 years, 9 months ago (2017-02-28 22:11:37 UTC) #18
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/2715213005/100002
3 years, 9 months ago (2017-02-28 23:21:57 UTC) #20
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 00:52:55 UTC) #23
Message was sent while issue was closed.
Committed patchset #6 (id:100002) as
https://chromium.googlesource.com/chromium/src/+/d4be8de802d4fd6e2b8ec7a85253...

Powered by Google App Engine
This is Rietveld 408576698