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 2731293002: [Payment Request] Updates AutofillEditItem to reuse in Payment Request (Closed)

Created:
3 years, 9 months ago by Moe
Modified:
3 years, 9 months ago
Reviewers:
Mathieu, lpromero
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payment Request] Updates AutofillEditItem to reuse in Payment Request 1. Adds a card type icon image to the AutofillEditItem for use as the credit card number input field in Payment Request. 2. Updates the existing Autofill form to display that image. screenshots: http://imgur.com/a/Q2yNb BUG=602666 TBR=mathp@ Review-Url: https://codereview.chromium.org/2731293002 Cr-Commit-Position: refs/heads/master@{#454881} Committed: https://chromium.googlesource.com/chromium/src/+/c3cd10e07d20e7498c94a3fbe3735f0bb68c3296

Patch Set 1 #

Total comments: 5

Patch Set 2 : Addressed comments #

Total comments: 1

Messages

Total messages: 14 (7 generated)
Moe
Hi Louis, Please take a look. TBR=mathp@
3 years, 9 months ago (2017-03-06 15:12:45 UTC) #2
lpromero
lgtm https://codereview.chromium.org/2731293002/diff/1/ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm File ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm (right): https://codereview.chromium.org/2731293002/diff/1/ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm#newcode214 ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm:214: // Update the cells. *cell https://codereview.chromium.org/2731293002/diff/1/ios/chrome/browser/ui/settings/autofill_edit_collection_view_controller+protected.h File ios/chrome/browser/ui/settings/autofill_edit_collection_view_controller+protected.h ...
3 years, 9 months ago (2017-03-06 16:18:16 UTC) #4
Moe
https://codereview.chromium.org/2731293002/diff/1/ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm File ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm (right): https://codereview.chromium.org/2731293002/diff/1/ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm#newcode214 ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm:214: // Update the cells. On 2017/03/06 16:18:16, lpromero wrote: ...
3 years, 9 months ago (2017-03-06 16:29:52 UTC) #6
lpromero
https://codereview.chromium.org/2731293002/diff/1/ios/chrome/browser/ui/settings/autofill_edit_collection_view_controller+protected.h File ios/chrome/browser/ui/settings/autofill_edit_collection_view_controller+protected.h (right): https://codereview.chromium.org/2731293002/diff/1/ios/chrome/browser/ui/settings/autofill_edit_collection_view_controller+protected.h#newcode14 ios/chrome/browser/ui/settings/autofill_edit_collection_view_controller+protected.h:14: - (NSIndexPath*)indexPathForCurrentTextField; On 2017/03/06 16:29:52, moe wrote: > On ...
3 years, 9 months ago (2017-03-06 16:36:00 UTC) #7
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/2731293002/20001
3 years, 9 months ago (2017-03-06 16:36:20 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/c3cd10e07d20e7498c94a3fbe3735f0bb68c3296
3 years, 9 months ago (2017-03-06 17:41:10 UTC) #13
Mathieu
3 years, 9 months ago (2017-03-06 20:14:06 UTC) #14
Message was sent while issue was closed.
Thanks Moe, one comment

https://codereview.chromium.org/2731293002/diff/20001/ios/chrome/browser/ui/s...
File
ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm
(right):

https://codereview.chromium.org/2731293002/diff/20001/ios/chrome/browser/ui/s...
ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm:203:
- (void)textFieldDidEndEditing:(UITextField*)textField {
On other platforms I'm pretty sure we show the icon as soon as it's available
(i.e. this would be called at every keystroke). This way, if you enter "4" we
can already tell it's a VISA which is nice. 

Unless I'm wrong this will only be called when the user is done with the field. 

Could
https://developer.apple.com/reference/uikit/uitextfielddelegate/1619599-textf...
work instead?

Powered by Google App Engine
This is Rietveld 408576698