Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Unified Diff: remoting/client/ios/app/pin_entry_view_controller.h

Issue 2795163003: CRD iOS: Adding pin entry view controller. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698