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

Side by Side Diff: remoting/ios/app/host_collection_view_cell.mm

Issue 2871993003: Moving the iOS directory to be remoting top level. (Closed)
Patch Set: //remoting/ios was the old landing target for the internal iOS application. Fix. Created 3 years, 7 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 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 <UIKit/UIKit.h> 9 #import <UIKit/UIKit.h>
10 10
11 #import "remoting/client/ios/app/host_collection_view_cell.h" 11 #import "remoting/ios/app/host_collection_view_cell.h"
12 12
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 #import "ios/third_party/material_components_ios/src/components/Typography/src/M aterialTypography.h" 15 #import "ios/third_party/material_components_ios/src/components/Typography/src/M aterialTypography.h"
16 #import "remoting/client/ios/domain/host_info.h" 16 #import "remoting/ios/domain/host_info.h"
17 17
18 static const CGFloat kLinePadding = 2.f; 18 static const CGFloat kLinePadding = 2.f;
19 static const CGFloat kHostCardIconInset = 10.f; 19 static const CGFloat kHostCardIconInset = 10.f;
20 static const CGFloat kHostCardPadding = 4.f; 20 static const CGFloat kHostCardPadding = 4.f;
21 static const CGFloat kHostCardIconSize = 45.f; 21 static const CGFloat kHostCardIconSize = 45.f;
22 22
23 @interface HostCollectionViewCell () { 23 @interface HostCollectionViewCell () {
24 UIImageView* _imageView; 24 UIImageView* _imageView;
25 UILabel* _statusLabel; 25 UILabel* _statusLabel;
26 UILabel* _titleLabel; 26 UILabel* _titleLabel;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 #pragma mark - UICollectionReusableView 118 #pragma mark - UICollectionReusableView
119 119
120 - (void)prepareForReuse { 120 - (void)prepareForReuse {
121 [super prepareForReuse]; 121 [super prepareForReuse];
122 _hostInfo = nil; 122 _hostInfo = nil;
123 _statusLabel.text = nil; 123 _statusLabel.text = nil;
124 _titleLabel.text = nil; 124 _titleLabel.text = nil;
125 } 125 }
126 126
127 @end 127 @end
OLDNEW
« no previous file with comments | « remoting/ios/app/host_collection_view_cell.h ('k') | remoting/ios/app/host_collection_view_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698