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

Issue 2712053003: [Payment Request] Displays Contact Info in the payment summary view (Closed)

Created:
3 years, 10 months ago by Moe
Modified:
3 years, 9 months ago
CC:
chromium-reviews, mahmadi+paymentsioswatch_chromium.org, pkl (ping after 24h if needed), gogerald+paymentswatch_chromium.org, rouslan+payments_chromium.org, marq+watch_chromium.org, noyau+watch_chromium.org, mahmadi+paymentswatch_chromium.org, srahim+watch_chromium.org, sebsg+paymentswatch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payment Request] Displays Contact Info in the payment summary view BUG=602666 Review-Url: https://codereview.chromium.org/2712053003 Cr-Commit-Position: refs/heads/master@{#453434} Committed: https://chromium.googlesource.com/chromium/src/+/25df673104a75dd667bc529e201ca55a09aaf954

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments #

Total comments: 17

Patch Set 3 : Addressed commments #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+402 lines, -429 lines) Patch
M ios/chrome/app/strings/ios_strings.grd View 1 2 chunks +0 lines, -9 lines 0 comments Download
M ios/chrome/browser/payments/cells/BUILD.gn View 3 chunks +4 lines, -3 lines 0 comments Download
A ios/chrome/browser/payments/cells/autofill_profile_item.h View 1 chunk +52 lines, -0 lines 0 comments Download
A + ios/chrome/browser/payments/cells/autofill_profile_item.mm View 1 2 8 chunks +57 lines, -52 lines 0 comments Download
A ios/chrome/browser/payments/cells/autofill_profile_item_unittest.mm View 1 chunk +51 lines, -0 lines 0 comments Download
D ios/chrome/browser/payments/cells/shipping_address_item.h View 1 chunk +0 lines, -35 lines 0 comments Download
D ios/chrome/browser/payments/cells/shipping_address_item.mm View 1 chunk +0 lines, -191 lines 0 comments Download
D ios/chrome/browser/payments/cells/shipping_address_item_unittest.mm View 1 chunk +0 lines, -43 lines 0 comments Download
M ios/chrome/browser/payments/payment_request.h View 3 chunks +25 lines, -3 lines 0 comments Download
M ios/chrome/browser/payments/payment_request.mm View 1 2 3 3 chunks +13 lines, -3 lines 0 comments Download
M ios/chrome/browser/payments/payment_request_coordinator.mm View 2 chunks +3 lines, -2 lines 0 comments Download
M ios/chrome/browser/payments/payment_request_util.h View 1 chunk +14 lines, -6 lines 0 comments Download
M ios/chrome/browser/payments/payment_request_util.mm View 1 2 3 chunks +18 lines, -10 lines 0 comments Download
M ios/chrome/browser/payments/payment_request_view_controller.mm View 1 2 3 18 chunks +110 lines, -49 lines 0 comments Download
M ios/chrome/browser/payments/payment_request_view_controller_unittest.mm View 4 chunks +11 lines, -5 lines 0 comments Download
M ios/chrome/browser/payments/shipping_address_selection_view_controller.mm View 1 5 chunks +14 lines, -12 lines 0 comments Download
M ios/chrome/browser/payments/shipping_address_selection_view_controller_unittest.mm View 2 chunks +5 lines, -5 lines 0 comments Download
M ios/chrome/browser/ui/settings/material_cell_catalog_view_controller.mm View 1 2 2 chunks +25 lines, -1 line 0 comments Download

Messages

Total messages: 18 (8 generated)
Moe
Hi Please take a look at this CL.
3 years, 10 months ago (2017-02-24 23:56:33 UTC) #2
please use gerrit instead
lgtm % nits https://codereview.chromium.org/2712053003/diff/1/components/payments_strings.grdp File components/payments_strings.grdp (right): https://codereview.chromium.org/2712053003/diff/1/components/payments_strings.grdp#newcode25 components/payments_strings.grdp:25: <message name="IDS_PAYMENTS_ADD_BUTTON" desc="The generic label for ...
3 years, 10 months ago (2017-02-26 01:55:26 UTC) #3
Moe
https://codereview.chromium.org/2712053003/diff/1/components/payments_strings.grdp File components/payments_strings.grdp (right): https://codereview.chromium.org/2712053003/diff/1/components/payments_strings.grdp#newcode25 components/payments_strings.grdp:25: <message name="IDS_PAYMENTS_ADD_BUTTON" desc="The generic label for an Add button." ...
3 years, 9 months ago (2017-02-27 16:43:23 UTC) #4
lpromero
lgtm with comments. https://codereview.chromium.org/2712053003/diff/20001/ios/chrome/browser/payments/cells/autofill_profile_item.h File ios/chrome/browser/payments/cells/autofill_profile_item.h (right): https://codereview.chromium.org/2712053003/diff/20001/ios/chrome/browser/payments/cells/autofill_profile_item.h#newcode14 ios/chrome/browser/payments/cells/autofill_profile_item.h:14: @interface AutofillProfileItem : CollectionViewItem Can you ...
3 years, 9 months ago (2017-02-27 17:52:10 UTC) #5
Moe
https://codereview.chromium.org/2712053003/diff/20001/ios/chrome/browser/payments/cells/autofill_profile_item.h File ios/chrome/browser/payments/cells/autofill_profile_item.h (right): https://codereview.chromium.org/2712053003/diff/20001/ios/chrome/browser/payments/cells/autofill_profile_item.h#newcode14 ios/chrome/browser/payments/cells/autofill_profile_item.h:14: @interface AutofillProfileItem : CollectionViewItem On 2017/02/27 17:52:10, lpromero wrote: ...
3 years, 9 months ago (2017-02-27 20:49:43 UTC) #6
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/2712053003/40001
3 years, 9 months ago (2017-02-27 20:57:09 UTC) #9
commit-bot: I haz the power
Failed to apply patch for ios/chrome/browser/payments/payment_request_view_controller.mm: While running git apply --index -p1; error: patch failed: ...
3 years, 9 months ago (2017-02-27 22:15:45 UTC) #11
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/2712053003/60001
3 years, 9 months ago (2017-02-27 23:40:54 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/25df673104a75dd667bc529e201ca55a09aaf954
3 years, 9 months ago (2017-02-28 01:17:12 UTC) #17
lpromero
3 years, 9 months ago (2017-02-28 10:03:05 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/2712053003/diff/20001/ios/chrome/browser/paym...
File ios/chrome/browser/payments/payment_request_view_controller.mm (right):

https://codereview.chromium.org/2712053003/diff/20001/ios/chrome/browser/paym...
ios/chrome/browser/payments/payment_request_view_controller.mm:545: case
ItemTypeAddContactInfo:
On 2017/02/27 20:49:43, moe wrote:
> On 2017/02/27 17:52:10, lpromero wrote:
> > Would this last one support being dynamically sized out of the box? (My end
> goal
> > would be to remove all use of MDCCellDefaultOneLineHeight eventually).
> > If any change is necessary, ignore this comment.
> 
> This one is a CollectionViewDetailItem. So it should support it. I can send
out
> a separate CL to update all the PR custom cell to support dynamic sizing. What
> are the requirements for supporting that? Is it only updating the
> preferredMaxLayoutWidth?
> 
> PS. Does preferredMaxLayoutWidth need to be set when there's only one single
> line label which is attached to the edges of the cell?

preferredMaxLayoutWidth is only for multilines labels. For single line, it's
indeed constraints with edges.
The cases that don't support dynamic yet:
- MDCCollectionViewTextCell, as it doesn't use Autolayout.
- other cells that center their content instead of attaching it to the edges.
For these, there is no constraint on the height, so it returns 0! The solution
has you point at is to constrain the edges.

That would be great if all the payments cells supported dynamic sizing. One day
I want to move -collectionView:cellHeightAtIndexPath: in the parent class.

Powered by Google App Engine
This is Rietveld 408576698