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

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

Issue 2846603002: Updating Pin Entry View and creating Connection Status View. (Closed)
Patch Set: Use viewWillLayoutSubviews. 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
« no previous file with comments | « remoting/client/ios/app/host_view_controller.mm ('k') | remoting/client/ios/app/pin_entry_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/ios/app/pin_entry_view.h
diff --git a/remoting/client/ios/app/pin_entry_view.h b/remoting/client/ios/app/pin_entry_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..4c492c3c46ab43825fd9b9cfad710508887321cc
--- /dev/null
+++ b/remoting/client/ios/app/pin_entry_view.h
@@ -0,0 +1,28 @@
+// 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_H_
+#define REMOTING_CLIENT_IOS_APP_PIN_ENTRY_VIEW_H_
+
+#import <UIKit/UIKit.h>
+
+@protocol PinEntryDelegate<NSObject>
+
+// Notifies the delegate that a pin has been provided and if we should pair.
+@optional
+- (void)didProvidePin:(NSString*)pin createPairing:(BOOL)createPairing;
+
+@end
+
+// This view is the container for a PIN entry box, a button to submit, and the
+// option box to remember the pairing. All used for entering a PIN based
+// passcode.
+@interface PinEntryView : UIView
+
+// This delegate will handle interactions on the cells in the collection.
+@property(weak, nonatomic) id<PinEntryDelegate> delegate;
+
+@end
+
+#endif // REMOTING_CLIENT_IOS_APP_PIN_ENTRY_VIEW_H_
« no previous file with comments | « remoting/client/ios/app/host_view_controller.mm ('k') | remoting/client/ios/app/pin_entry_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698