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/pin_entry_view.h" | 9 #import "remoting/ios/app/pin_entry_view.h" |
10 | 10 |
11 #import "ios/third_party/material_components_ios/src/components/Buttons/src/Mate
rialButtons.h" | 11 #import "ios/third_party/material_components_ios/src/components/Buttons/src/Mate
rialButtons.h" |
12 | 12 |
13 static const CGFloat kMargin = 5.f; | 13 static const CGFloat kMargin = 5.f; |
14 static const CGFloat kPadding = 6.f; | 14 static const CGFloat kPadding = 6.f; |
15 static const CGFloat kLineSpace = 12.f; | 15 static const CGFloat kLineSpace = 12.f; |
16 | 16 |
17 @interface PinEntryView () { | 17 @interface PinEntryView () { |
18 UISwitch* _pairingSwitch; | 18 UISwitch* _pairingSwitch; |
19 UILabel* _pairingLabel; | 19 UILabel* _pairingLabel; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 } | 114 } |
115 | 115 |
116 #pragma mark - Private | 116 #pragma mark - Private |
117 | 117 |
118 - (void)didTapPinEntry:(id)sender { | 118 - (void)didTapPinEntry:(id)sender { |
119 [_delegate didProvidePin:_pinEntry.text createPairing:_pairingSwitch.isOn]; | 119 [_delegate didProvidePin:_pinEntry.text createPairing:_pairingSwitch.isOn]; |
120 [_pinEntry endEditing:YES]; | 120 [_pinEntry endEditing:YES]; |
121 } | 121 } |
122 | 122 |
123 @end | 123 @end |
OLD | NEW |