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

Unified Diff: remoting/client/ios/session/remoting_client.h

Issue 2856933007: [Remoting iOS] Basic viewport manipulation support (Closed)
Patch Set: Move the delegate getter/setting to the bottom 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/display/gl_display_handler.mm ('k') | remoting/client/ios/session/remoting_client.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/ios/session/remoting_client.h
diff --git a/remoting/client/ios/session/remoting_client.h b/remoting/client/ios/session/remoting_client.h
index 900a346e70df716789d807519ed1b18dad3b2330..d1ea4377c74b1bdcc04d8dec7776c4cfd2865858 100644
--- a/remoting/client/ios/session/remoting_client.h
+++ b/remoting/client/ios/session/remoting_client.h
@@ -7,8 +7,16 @@
#import <Foundation/Foundation.h>
+#import "remoting/client/ios/display/gl_display_handler.h"
+
#include "remoting/protocol/connection_to_host.h"
+namespace remoting {
+
+class GestureInterpreter;
+
+} // namespace remoting
+
@class HostInfo;
@class GlDisplayHandler;
@@ -28,7 +36,7 @@ extern NSString* const kHostSessionPin;
// NSNotificationCenter to signal session state changes using the key
// |kHostSessionStatusChanged|. It expects to receive an event back on
// |kHostSessionPinProvided| when the session is asking for a PIN authenication.
-@interface RemotingClient : NSObject
+@interface RemotingClient : NSObject<GlDisplayHandlerDelegate>
// Connect to a given host.
// |hostInfo| is all the details around a host.
@@ -55,10 +63,17 @@ extern NSString* const kHostSessionPin;
- (void)handleExtensionMessageOfType:(NSString*)type message:(NSString*)message;
+// Notifies all components that the frame of the surface has changed.
+- (void)surfaceChanged:(const CGRect&)frame;
+
// The display handler tied to the remoting client used to display the host.
@property(nonatomic, strong) GlDisplayHandler* displayHandler;
// The host info used to make the remoting client connection.
@property(nonatomic, readonly) HostInfo* hostInfo;
+// The gesture interpreter used to handle gestures.
+// This is valid only after the client has connected to the host. Always use
+// RemotingClient.gestureInterpreter instead of storing the pointer separately.
+@property(nonatomic, readonly) remoting::GestureInterpreter* gestureInterpreter;
@end
« no previous file with comments | « remoting/client/ios/display/gl_display_handler.mm ('k') | remoting/client/ios/session/remoting_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698