OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #if !defined(__has_feature) || !__has_feature(objc_arc) | 5 #if !defined(__has_feature) || !__has_feature(objc_arc) |
6 #error "This file requires ARC support." | 6 #error "This file requires ARC support." |
7 #endif | 7 #endif |
8 | 8 |
9 #import "remoting/client/ios/app/host_collection_view_controller.h" | 9 #import "remoting/ios/app/host_collection_view_controller.h" |
10 | 10 |
11 #import "ios/third_party/material_components_ios/src/components/Ink/src/Material
Ink.h" | 11 #import "ios/third_party/material_components_ios/src/components/Ink/src/Material
Ink.h" |
12 #import "ios/third_party/material_components_ios/src/components/NavigationBar/sr
c/MaterialNavigationBar.h" | 12 #import "ios/third_party/material_components_ios/src/components/NavigationBar/sr
c/MaterialNavigationBar.h" |
13 #import "ios/third_party/material_components_ios/src/components/ShadowElevations
/src/MaterialShadowElevations.h" | 13 #import "ios/third_party/material_components_ios/src/components/ShadowElevations
/src/MaterialShadowElevations.h" |
14 #import "ios/third_party/material_components_ios/src/components/ShadowLayer/src/
MaterialShadowLayer.h" | 14 #import "ios/third_party/material_components_ios/src/components/ShadowLayer/src/
MaterialShadowLayer.h" |
15 | 15 |
16 static NSString* const kReusableIdentifierItem = | 16 static NSString* const kReusableIdentifierItem = |
17 @"remotingHostCollectionViewControllerItem"; | 17 @"remotingHostCollectionViewControllerItem"; |
18 | 18 |
19 static CGFloat kHostCollectionViewControllerCellHeight = 70.f; | 19 static CGFloat kHostCollectionViewControllerCellHeight = 70.f; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // Use a custom shadow under the flexible header. | 143 // Use a custom shadow under the flexible header. |
144 MDCShadowLayer* shadowLayer = [MDCShadowLayer layer]; | 144 MDCShadowLayer* shadowLayer = [MDCShadowLayer layer]; |
145 [headerView setShadowLayer:shadowLayer | 145 [headerView setShadowLayer:shadowLayer |
146 intensityDidChangeBlock:^(CALayer* layer, CGFloat intensity) { | 146 intensityDidChangeBlock:^(CALayer* layer, CGFloat intensity) { |
147 CGFloat elevation = MDCShadowElevationAppBar * intensity; | 147 CGFloat elevation = MDCShadowElevationAppBar * intensity; |
148 [(MDCShadowLayer*)layer setElevation:elevation]; | 148 [(MDCShadowLayer*)layer setElevation:elevation]; |
149 }]; | 149 }]; |
150 } | 150 } |
151 | 151 |
152 @end | 152 @end |
OLD | NEW |