OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_CLIENT_IOS_APP_PIN_ENTRY_VIEW_H_ | |
6 #define REMOTING_CLIENT_IOS_APP_PIN_ENTRY_VIEW_H_ | |
7 | |
8 #import <UIKit/UIKit.h> | |
9 | |
10 @protocol PinEntryDelegate<NSObject> | |
11 | |
12 // Notifies the delegate that a pin has been provided and if we should pair. | |
13 @optional | |
14 - (void)didProvidePin:(NSString*)pin createPairing:(BOOL)createPairing; | |
15 | |
16 @end | |
17 | |
18 // This view is the container for a PIN entry box, a button to submit, and the | |
19 // option box to remember the pairing. All used for entering a PIN based | |
20 // passcode. | |
21 @interface PinEntryView : UIView | |
22 | |
23 // This delegate will handle interactions on the cells in the collection. | |
24 @property(weak, nonatomic) id<PinEntryDelegate> delegate; | |
25 | |
26 @end | |
27 | |
28 #endif // REMOTING_CLIENT_IOS_APP_PIN_ENTRY_VIEW_H_ | |
OLD | NEW |