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

Side by Side Diff: ios/chrome/browser/ui/material_components/utils.mm

Issue 2888993003: [ObjC ARC] Converts ios/chrome/browser/ui/material_components:material_components to ARC. (Closed)
Patch Set: Adding strong classifier to app_bar_presenting.h 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
« no previous file with comments | « ios/chrome/browser/ui/material_components/app_bar_presenting.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/material_components/utils.h" 5 #import "ios/chrome/browser/ui/material_components/utils.h"
6 6
7 #import <UIKit/UIKit.h> 7 #import <UIKit/UIKit.h>
8 8
9 #import "ios/third_party/material_components_ios/src/components/AppBar/src/Mater ialAppBar.h" 9 #import "ios/third_party/material_components_ios/src/components/AppBar/src/Mater ialAppBar.h"
10 #import "ios/third_party/material_components_ios/src/components/FlexibleHeader/s rc/MaterialFlexibleHeader.h" 10 #import "ios/third_party/material_components_ios/src/components/FlexibleHeader/s rc/MaterialFlexibleHeader.h"
11 #import "ios/third_party/material_components_ios/src/components/NavigationBar/sr c/MaterialNavigationBar.h" 11 #import "ios/third_party/material_components_ios/src/components/NavigationBar/sr c/MaterialNavigationBar.h"
12 #import "ios/third_party/material_components_ios/src/components/Palettes/src/Mat erialPalettes.h" 12 #import "ios/third_party/material_components_ios/src/components/Palettes/src/Mat erialPalettes.h"
13 13
14 #if !defined(__has_feature) || !__has_feature(objc_arc)
15 #error "This file requires ARC support."
16 #endif
17
14 void ConfigureAppBarWithCardStyle(MDCAppBar* appBar) { 18 void ConfigureAppBarWithCardStyle(MDCAppBar* appBar) {
15 appBar.headerViewController.headerView.canOverExtend = NO; 19 appBar.headerViewController.headerView.canOverExtend = NO;
16 appBar.headerViewController.headerView.shiftBehavior = 20 appBar.headerViewController.headerView.shiftBehavior =
17 MDCFlexibleHeaderShiftBehaviorDisabled; 21 MDCFlexibleHeaderShiftBehaviorDisabled;
18 appBar.headerViewController.headerView.backgroundColor = 22 appBar.headerViewController.headerView.backgroundColor =
19 [[MDCPalette greyPalette] tint200]; 23 [[MDCPalette greyPalette] tint200];
20 appBar.navigationBar.tintColor = [[MDCPalette greyPalette] tint900]; 24 appBar.navigationBar.tintColor = [[MDCPalette greyPalette] tint900];
21 appBar.navigationBar.titleAlignment = MDCNavigationBarTitleAlignmentLeading; 25 appBar.navigationBar.titleAlignment = MDCNavigationBarTitleAlignmentLeading;
22 } 26 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/material_components/app_bar_presenting.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698