| 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_CONTROLLER_H_ | |
| 6 #define REMOTING_CLIENT_IOS_APP_PIN_ENTRY_VIEW_CONTROLLER_H_ | |
| 7 | |
| 8 #import <UIKit/UIKit.h> | |
| 9 | |
| 10 typedef void (^PinEntryModalCallback)(NSString* hostPin, BOOL createPairing); | |
| 11 | |
| 12 // PinEntryViewController is expected to be created, displayed and then | |
| 13 // destroyed after the pin entry is finished; not reused. | |
| 14 @interface PinEntryViewController : UIViewController | |
| 15 | |
| 16 // Callback will be used to return the pin entry result. | |
| 17 - (id)initWithCallback:(PinEntryModalCallback)callback; | |
| 18 | |
| 19 @end | |
| 20 | |
| 21 #endif // REMOTING_CLIENT_IOS_APP_PIN_ENTRY_VIEW_CONTROLLER_H_ | |
| OLD | NEW |