Chromium Code Reviews| Index: remoting/client/ios/app/pin_entry_view_controller.h |
| diff --git a/remoting/client/ios/app/pin_entry_view_controller.h b/remoting/client/ios/app/pin_entry_view_controller.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..734dc949ecadf2304b1dbf58de47c7a8074741c9 |
| --- /dev/null |
| +++ b/remoting/client/ios/app/pin_entry_view_controller.h |
| @@ -0,0 +1,21 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef REMOTING_CLIENT_IOS_APP_PIN_ENTRY_VIEW_CONTROLLER_H_ |
| +#define REMOTING_CLIENT_IOS_APP_PIN_ENTRY_VIEW_CONTROLLER_H_ |
| + |
| +#import <UIKit/UIKit.h> |
| + |
| +typedef void (^PinEntryModalCallback)(NSString* hostPin, BOOL createPairing); |
| + |
| +// PinEntryViewController is expected to be created, displayed and then |
|
Lambros
2017/04/05 00:17:40
If the user cancels the dialog without entering a
nicholss
2017/04/05 16:25:41
Hm. I have not implemented the callback reaction y
|
| +// destroyed after the pin entry is finished; not resued. |
|
Lambros
2017/04/05 00:17:40
s/resued/reused
nicholss
2017/04/05 16:25:41
Done.
|
| +@interface PinEntryViewController : UIViewController |
| + |
| +// Callback will be used to return the pin entry result. |
| +- (id)initWithCallback:(PinEntryModalCallback)callback; |
| + |
| +@end |
| + |
| +#endif // REMOTING_CLIENT_IOS_APP_PIN_ENTRY_VIEW_CONTROLLER_H_ |