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

Issue 2817953002: CollectionViewTextItem no longer styles CollectionViewTextCell (Closed)

Created:
3 years, 8 months ago by Moe
Modified:
3 years, 8 months ago
Reviewers:
gambard, lpromero
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, vabr+watchlistpasswordmanager_chromium.org, ios-reviews_chromium.org, 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, stkhapugin, gcasto+watchlist_chromium.org, sebsg+paymentswatch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

CollectionViewTextItem should not style CollectionViewTextCell This is essentially a revert of https://codereview.chromium.org/2627323003 with the addition of adding styling to the view controllers using the CollectionViewTextCell. This helps keep the styling logic flat and more flexible for the heavily reused CollectionViewTextItem.

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : Addressed comment #

Patch Set 4 : rebase #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -95 lines) Patch
M ios/chrome/browser/payments/payment_request_view_controller.mm View 1 2 3 chunks +10 lines, -5 lines 0 comments Download
M ios/chrome/browser/payments/shipping_option_selection_view_controller.mm View 1 2 3 chunks +7 lines, -6 lines 0 comments Download
M ios/chrome/browser/ui/collection_view/cells/collection_view_text_cell.mm View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.h View 1 chunk +2 lines, -17 lines 0 comments Download
M ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm View 4 chunks +0 lines, -39 lines 0 comments Download
M ios/chrome/browser/ui/reading_list/reading_list_collection_view_controller.mm View 1 2 4 chunks +24 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/settings/accounts_collection_view_controller.mm View 1 2 4 chunks +25 lines, -1 line 1 comment Download
M ios/chrome/browser/ui/settings/autofill_collection_view_controller.mm View 1 2 4 chunks +6 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/settings/block_popups_collection_view_controller.mm View 1 2 3 chunks +9 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm View 1 2 4 chunks +24 lines, -1 line 1 comment Download
M ios/chrome/browser/ui/settings/material_cell_catalog_view_controller.mm View 1 2 3 6 chunks +33 lines, -6 lines 0 comments Download
M ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm View 1 2 3 6 chunks +25 lines, -3 lines 1 comment Download
M ios/chrome/browser/ui/settings/privacy_collection_view_controller.mm View 1 2 5 chunks +7 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/settings/save_passwords_collection_view_controller.mm View 1 2 5 chunks +10 lines, -4 lines 0 comments Download
M ios/chrome/browser/ui/settings/settings_collection_view_controller.mm View 1 2 6 chunks +8 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/settings/sync_settings_collection_view_controller.mm View 1 2 5 chunks +9 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/settings/translate_collection_view_controller.mm View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 35 (20 generated)
Moe
Hi Louis, Gauthier, PTAL
3 years, 8 months ago (2017-04-13 16:16:25 UTC) #7
lpromero
https://codereview.chromium.org/2817953002/diff/40001/ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm File ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm (left): https://codereview.chromium.org/2817953002/diff/40001/ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm#oldcode39 ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm:39: _textFont = [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:14]; Instead of moving these ...
3 years, 8 months ago (2017-04-13 17:44:26 UTC) #17
Moe
https://codereview.chromium.org/2817953002/diff/40001/ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm File ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm (left): https://codereview.chromium.org/2817953002/diff/40001/ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm#oldcode39 ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm:39: _textFont = [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:14]; On 2017/04/13 17:44:26, lpromero ...
3 years, 8 months ago (2017-04-13 18:48:58 UTC) #18
Moe
https://codereview.chromium.org/2817953002/diff/40001/ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm File ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm (left): https://codereview.chromium.org/2817953002/diff/40001/ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm#oldcode39 ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm:39: _textFont = [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:14]; On 2017/04/13 17:44:26, lpromero ...
3 years, 8 months ago (2017-04-13 19:33:39 UTC) #19
lpromero
lgtm https://codereview.chromium.org/2817953002/diff/40001/ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm File ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm (left): https://codereview.chromium.org/2817953002/diff/40001/ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm#oldcode39 ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm:39: _textFont = [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:14]; On 2017/04/13 18:48:58, ...
3 years, 8 months ago (2017-04-13 20:24:55 UTC) #21
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/2817953002/60001
3 years, 8 months ago (2017-04-13 20:25:32 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/271664) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-13 20:29:40 UTC) #24
Moe
On 2017/04/13 20:29:40, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 8 months ago (2017-04-13 20:52:21 UTC) #25
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/2817953002/70018
3 years, 8 months ago (2017-04-13 20:52:57 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/410921) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-13 21:04:00 UTC) #30
gambard
I am not fond of this change, it is also a revert of https://codereview.chromium.org/2768933005/ I ...
3 years, 8 months ago (2017-04-14 07:04:03 UTC) #31
lpromero
On 2017/04/14 07:04:03, gambard wrote: > I am not fond of this change, it is ...
3 years, 8 months ago (2017-04-14 07:23:24 UTC) #32
lpromero
On 2017/04/14 07:23:24, lpromero wrote: > On 2017/04/14 07:04:03, gambard wrote: > > I am ...
3 years, 8 months ago (2017-04-14 11:09:09 UTC) #33
Moe
On 2017/04/14 11:09:09, lpromero wrote: > On 2017/04/14 07:23:24, lpromero wrote: > > On 2017/04/14 ...
3 years, 8 months ago (2017-04-15 00:35:58 UTC) #34
Moe
3 years, 8 months ago (2017-04-15 00:36:12 UTC) #35
On 2017/04/15 00:35:58, moe wrote:
> On 2017/04/14 11:09:09, lpromero wrote:
> > On 2017/04/14 07:23:24, lpromero wrote:
> > > On 2017/04/14 07:04:03, gambard wrote:
> > > > I am not fond of this change, it is also a revert of
> > > > https://codereview.chromium.org/2768933005/
> > > > I had to make the above CL because I changed the cell class used by the
> > > > CollectionViewItem. As you are making a cast in all those classes,
> changing
> > > the
> > > > cell means changing all those casts.
> > > > 
> > > > Is there any reason for doing this change?
> > > > 
> > > >
> > >
> >
>
https://codereview.chromium.org/2817953002/diff/70018/ios/chrome/browser/ui/s...
> > > > File
ios/chrome/browser/ui/settings/accounts_collection_view_controller.mm
> > > > (right):
> > > > 
> > > >
> > >
> >
>
https://codereview.chromium.org/2817953002/diff/70018/ios/chrome/browser/ui/s...
> > > >
ios/chrome/browser/ui/settings/accounts_collection_view_controller.mm:378:
> > > > cellForItemAtIndexPath:(nonnull NSIndexPath*)indexPath {
> > > > Is this working?
> > > > I am surprised, it is a header not a cell. You should probably implement
> > > > -
> > (UICollectionReusableView*)collectionView:(UICollectionView*)collectionView	
> > > >            viewForSupplementaryElementOfKind:(NSString*)kind	
> > > >                                  atIndexPath:(NSIndexPath*)indexPath
> > > > 
> > > > This is also true for the other header through the CL.
> > > > 
> > > >
> > >
> >
>
https://codereview.chromium.org/2817953002/diff/70018/ios/chrome/browser/ui/s...
> > > > File
> > > >
> > >
> >
>
ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm
> > > > (right):
> > > > 
> > > >
> > >
> >
>
https://codereview.chromium.org/2817953002/diff/70018/ios/chrome/browser/ui/s...
> > > >
> > >
> >
>
ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm:815:
> > > > textCell.textLabel.textColor = [[MDCPalette greyPalette] tint500];
> > > > Didn't you move from red to grey?
> > > > 
> > > >
> > >
> >
>
https://codereview.chromium.org/2817953002/diff/70018/ios/chrome/browser/ui/s...
> > > > File
> > > >
> >
ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm
> > > > (left):
> > > > 
> > > >
> > >
> >
>
https://codereview.chromium.org/2817953002/diff/70018/ios/chrome/browser/ui/s...
> > > >
> > >
> >
>
ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm:186:
> > > > item.textColor = [[MDCPalette cr_redPalette] tint500];
> > > > This one is red
> > > 
> > > Maybe it's time to start designing and implementing the styler then :|
> > 
> > Moe, Gauthier and I talked about a styler API. Gauthier is doing a prototype
> CL
> > and I start writing a doc. Are you block by any of this? I am fine keeping
the
> > code as is if you are not blocked.
> 
> I saw the style API. and I like it! I think it's a step in the right
direction.
> Thank you for the prototype Gaughier. It is very useful.
> I am blocked by CollectionViewTextItem's implementation as is. But I'm going
to
> make changes to PaymentsTextCell to
> support a secondary text label and replace all instances of
> CollectionViewTextItem with PaymentsTextItem.
> That will unblock me. Maybe I can give the styler a try early on too :)

Closing this.

Powered by Google App Engine
This is Rietveld 408576698