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