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

Issue 2881643002: Focus first invalid field of payment request editor (Closed)

Created:
3 years, 7 months ago by MAD
Modified:
3 years, 7 months ago
Reviewers:
anthonyvd
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Focus first invalid field of payment request editor BUG=718582 Review-Url: https://codereview.chromium.org/2881643002 Cr-Commit-Position: refs/heads/master@{#473223} Committed: https://chromium.googlesource.com/chromium/src/+/7bd80624d68ec2ff9cca61c0bdf0754c6830f6ef

Patch Set 1 #

Patch Set 2 : Self CR #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Total comments: 12

Patch Set 5 : Rebase + comments addressed (sorry for the mix) #

Patch Set 6 : Rebased and some merge fixes #

Patch Set 7 : Some cleanups #

Patch Set 8 : replaced a NOTREACHED with a LOG(ERROR) #

Patch Set 9 : Rebase #

Patch Set 10 : Cleanups #

Patch Set 11 : Self CR #

Patch Set 12 : Fixed a case typo #

Total comments: 4

Patch Set 13 : Updated API to create field views other small tweaks. #

Total comments: 9

Patch Set 14 : Final nits #

Patch Set 15 : Rebase #

Patch Set 16 : Last final nit :-) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -104 lines) Patch
M chrome/browser/ui/views/payments/contact_info_editor_view_controller.h View 1 2 3 4 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc View 1 2 3 4 5 chunks +37 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/payments/credit_card_editor_view_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +9 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +56 lines, -25 lines 0 comments Download
M chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/payments/editor_view_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/payments/editor_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 12 chunks +33 lines, -19 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_browsertest_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_sheet_controller.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_sheet_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/shipping_address_editor_view_controller.h View 1 2 3 4 5 6 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +38 lines, -24 lines 0 comments Download
M chrome/browser/ui/views/payments/shipping_address_editor_view_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +48 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/validating_combobox.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/validating_combobox.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/validating_textfield.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/validating_textfield.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/validating_textfield_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/validation_delegate.h View 1 2 3 4 1 chunk +10 lines, -3 lines 0 comments Download

Messages

Total messages: 54 (41 generated)
MAD
I couldn't find a clean way of displaying the error on top of focusing invalid ...
3 years, 7 months ago (2017-05-11 20:24:18 UTC) #2
anthonyvd
Thanks, it'll be awesome to get this working! Few comments. https://codereview.chromium.org/2881643002/diff/60001/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc File chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc (right): https://codereview.chromium.org/2881643002/diff/60001/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc#newcode171 ...
3 years, 7 months ago (2017-05-12 14:19:45 UTC) #15
MAD
OK, this should be ready to take another look. Sorry about the confusion of the ...
3 years, 7 months ago (2017-05-18 16:01:49 UTC) #22
anthonyvd
This is starting to look great :) Couple more comments. https://codereview.chromium.org/2881643002/diff/60001/chrome/browser/ui/views/payments/editor_view_controller.h File chrome/browser/ui/views/payments/editor_view_controller.h (right): https://codereview.chromium.org/2881643002/diff/60001/chrome/browser/ui/views/payments/editor_view_controller.h#newcode166 ...
3 years, 7 months ago (2017-05-18 18:12:25 UTC) #28
MAD
I kept the focusable view as a return value if you don't mind, and I ...
3 years, 7 months ago (2017-05-18 20:31:19 UTC) #31
anthonyvd
Yeah, returning the field makes sense. https://codereview.chromium.org/2881643002/diff/260001/chrome/browser/ui/views/payments/editor_view_controller.cc File chrome/browser/ui/views/payments/editor_view_controller.cc (right): https://codereview.chromium.org/2881643002/diff/260001/chrome/browser/ui/views/payments/editor_view_controller.cc#newcode262 chrome/browser/ui/views/payments/editor_view_controller.cc:262: views::View* potential_first_field_view = ...
3 years, 7 months ago (2017-05-18 21:15:38 UTC) #34
MAD
Renamed variable as requested, and explained the reasons for the other comments. Let me know ...
3 years, 7 months ago (2017-05-19 13:43:51 UTC) #39
anthonyvd
https://codereview.chromium.org/2881643002/diff/260001/chrome/browser/ui/views/payments/editor_view_controller.cc File chrome/browser/ui/views/payments/editor_view_controller.cc (right): https://codereview.chromium.org/2881643002/diff/260001/chrome/browser/ui/views/payments/editor_view_controller.cc#newcode270 chrome/browser/ui/views/payments/editor_view_controller.cc:270: else if (!potential_first_field_view) On 2017/05/19 at 13:43:51, MAD wrote: ...
3 years, 7 months ago (2017-05-19 15:11:42 UTC) #42
MAD
OK you win... :-) All good? Thanks! BYE MAD https://codereview.chromium.org/2881643002/diff/260001/chrome/browser/ui/views/payments/editor_view_controller.cc File chrome/browser/ui/views/payments/editor_view_controller.cc (right): https://codereview.chromium.org/2881643002/diff/260001/chrome/browser/ui/views/payments/editor_view_controller.cc#newcode270 chrome/browser/ui/views/payments/editor_view_controller.cc:270: ...
3 years, 7 months ago (2017-05-19 15:35:36 UTC) #44
anthonyvd
lgtm
3 years, 7 months ago (2017-05-19 15:41:13 UTC) #46
MAD
On 2017/05/19 15:41:13, anthonyvd wrote: > lgtm Merci... :-)
3 years, 7 months ago (2017-05-19 15:50:49 UTC) #47
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/2881643002/320001
3 years, 7 months ago (2017-05-19 17:10:53 UTC) #51
commit-bot: I haz the power
3 years, 7 months ago (2017-05-19 17:17:05 UTC) #54
Message was sent while issue was closed.
Committed patchset #16 (id:320001) as
https://chromium.googlesource.com/chromium/src/+/7bd80624d68ec2ff9cca61c0bdf0...

Powered by Google App Engine
This is Rietveld 408576698