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

Side by Side Diff: ios/chrome/browser/ui/payments/payment_request_view_controller.mm

Issue 2912863005: Use MDCTypography instead of MDFRobotoFontLoader directly. (Closed)
Patch Set: Tentative fix for ManualTextFramerTest Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/chrome/browser/ui/payments/payment_request_view_controller.h" 5 #import "ios/chrome/browser/ui/payments/payment_request_view_controller.h"
6 6
7 #include "base/mac/foundation_util.h" 7 #include "base/mac/foundation_util.h"
8 8
9 #include "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 19 matching lines...) Expand all
30 #import "ios/chrome/browser/ui/payments/cells/payment_method_item.h" 30 #import "ios/chrome/browser/ui/payments/cells/payment_method_item.h"
31 #import "ios/chrome/browser/ui/payments/cells/payments_text_item.h" 31 #import "ios/chrome/browser/ui/payments/cells/payments_text_item.h"
32 #import "ios/chrome/browser/ui/payments/cells/price_item.h" 32 #import "ios/chrome/browser/ui/payments/cells/price_item.h"
33 #import "ios/chrome/browser/ui/payments/payment_request_view_controller_actions. h" 33 #import "ios/chrome/browser/ui/payments/payment_request_view_controller_actions. h"
34 #include "ios/chrome/browser/ui/rtl_geometry.h" 34 #include "ios/chrome/browser/ui/rtl_geometry.h"
35 #include "ios/chrome/browser/ui/uikit_ui_util.h" 35 #include "ios/chrome/browser/ui/uikit_ui_util.h"
36 #include "ios/chrome/grit/ios_strings.h" 36 #include "ios/chrome/grit/ios_strings.h"
37 #import "ios/third_party/material_components_ios/src/components/Buttons/src/Mate rialButtons.h" 37 #import "ios/third_party/material_components_ios/src/components/Buttons/src/Mate rialButtons.h"
38 #import "ios/third_party/material_components_ios/src/components/CollectionCells/ src/MaterialCollectionCells.h" 38 #import "ios/third_party/material_components_ios/src/components/CollectionCells/ src/MaterialCollectionCells.h"
39 #import "ios/third_party/material_components_ios/src/components/Typography/src/M aterialTypography.h" 39 #import "ios/third_party/material_components_ios/src/components/Typography/src/M aterialTypography.h"
40 #import "ios/third_party/material_roboto_font_loader_ios/src/src/MaterialRobotoF ontLoader.h"
41 #include "ios/web/public/payments/payment_request.h" 40 #include "ios/web/public/payments/payment_request.h"
42 #include "ui/base/l10n/l10n_util.h" 41 #include "ui/base/l10n/l10n_util.h"
43 #include "ui/base/resource/resource_bundle.h" 42 #include "ui/base/resource/resource_bundle.h"
44 43
45 #if !defined(__has_feature) || !__has_feature(objc_arc) 44 #if !defined(__has_feature) || !__has_feature(objc_arc)
46 #error "This file requires ARC support." 45 #error "This file requires ARC support."
47 #endif 46 #endif
48 47
49 namespace { 48 namespace {
50 using ::payment_request_util::GetNameLabelFromAutofillProfile; 49 using ::payment_request_util::GetNameLabelFromAutofillProfile;
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 617
619 - (BOOL)collectionView:(UICollectionView*)collectionView 618 - (BOOL)collectionView:(UICollectionView*)collectionView
620 shouldHideItemBackgroundAtIndexPath:(NSIndexPath*)indexPath { 619 shouldHideItemBackgroundAtIndexPath:(NSIndexPath*)indexPath {
621 // No background on the footer text item. 620 // No background on the footer text item.
622 NSInteger sectionIdentifier = 621 NSInteger sectionIdentifier =
623 [self.collectionViewModel sectionIdentifierForSection:indexPath.section]; 622 [self.collectionViewModel sectionIdentifierForSection:indexPath.section];
624 return sectionIdentifier == SectionIdentifierFooter ? YES : NO; 623 return sectionIdentifier == SectionIdentifierFooter ? YES : NO;
625 } 624 }
626 625
627 @end 626 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/payments/cells/page_info_item.mm ('k') | ios/chrome/browser/ui/reading_list/number_badge_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698