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

Unified Diff: remoting/ios/app/client_connection_view_controller.h

Issue 2917253002: [CRD iOS] Create RemotingClient in ClientConnectionViewController (Closed)
Patch Set: fix Created 3 years, 6 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/ios/app/client_connection_view_controller.h
diff --git a/remoting/ios/app/client_connection_view_controller.h b/remoting/ios/app/client_connection_view_controller.h
index cb5638b38faef332733292f9d87bc5a8ede98c3f..efc5b563a10c845ff9b410ceaab18493422440c9 100644
--- a/remoting/ios/app/client_connection_view_controller.h
+++ b/remoting/ios/app/client_connection_view_controller.h
@@ -7,6 +7,8 @@
#import <UIKit/UIKit.h>
+@class HostInfo;
+
// This enumerated the differnt modes this Client Connection View can be in.
typedef NS_ENUM(NSInteger, ClientConnectionViewState) {
ClientViewConnecting,
@@ -15,18 +17,6 @@ typedef NS_ENUM(NSInteger, ClientConnectionViewState) {
ClientViewClosed,
};
-// The host connection view controller delegate provides feedback for state
-// changes on Host Connection that the calling view should respond to.
-@protocol ClientConnectionViewControllerDelegate<NSObject>
-
-// Notifies the delegate the client is connected to the host.
-- (void)clientConnected;
-
-// Gets the current host name the client is attempting to connect to.
-- (NSString*)getConnectingHostName;
-
-@end
-
// This is the view that shows the user feedback while the client connection is
// being established. If requested the view can also display the pin entry view.
// State communication for this view is handled by NSNotifications, it listens
@@ -35,13 +25,11 @@ typedef NS_ENUM(NSInteger, ClientConnectionViewState) {
// work the same way if state is set directly.
@interface ClientConnectionViewController : UIViewController
+- (instancetype)initWithHostInfo:(HostInfo*)hostInfo;
+
// Setting state will change the view
@property(nonatomic, assign) ClientConnectionViewState state;
-// This delegate is used to ask for Host Name and to notify when the connection
-// has been established.
-@property(weak, nonatomic) id<ClientConnectionViewControllerDelegate> delegate;
-
@end
#endif // REMOTING_IOS_APP_CLIENT_CONNECTION_VIEW_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698