OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_IOS_SESSION_REMOTING_CLIENT_H_ | 5 #ifndef REMOTING_IOS_SESSION_REMOTING_CLIENT_H_ |
6 #define REMOTING_IOS_SESSION_REMOTING_CLIENT_H_ | 6 #define REMOTING_IOS_SESSION_REMOTING_CLIENT_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #import "remoting/ios/display/gl_display_handler.h" | 10 #import "remoting/ios/display/gl_display_handler.h" |
11 | 11 |
12 #include "remoting/protocol/connection_to_host.h" | 12 #include "remoting/protocol/connection_to_host.h" |
13 | 13 |
14 namespace remoting { | 14 namespace remoting { |
15 | 15 |
16 class GestureInterpreter; | 16 class GestureInterpreter; |
| 17 class KeyboardInterpreter; |
17 | 18 |
18 } // namespace remoting | 19 } // namespace remoting |
19 | 20 |
20 @class HostInfo; | 21 @class HostInfo; |
21 @class GlDisplayHandler; | 22 @class GlDisplayHandler; |
22 | 23 |
23 // A list of notifications that will be sent out for different types of Remoting | 24 // A list of notifications that will be sent out for different types of Remoting |
24 // Client events. | 25 // Client events. |
25 // | 26 // |
26 extern NSString* const kHostSessionStatusChanged; | 27 extern NSString* const kHostSessionStatusChanged; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 - (void)surfaceChanged:(const CGRect&)frame; | 71 - (void)surfaceChanged:(const CGRect&)frame; |
71 | 72 |
72 // The display handler tied to the remoting client used to display the host. | 73 // The display handler tied to the remoting client used to display the host. |
73 @property(nonatomic, strong) GlDisplayHandler* displayHandler; | 74 @property(nonatomic, strong) GlDisplayHandler* displayHandler; |
74 // The host info used to make the remoting client connection. | 75 // The host info used to make the remoting client connection. |
75 @property(nonatomic, readonly) HostInfo* hostInfo; | 76 @property(nonatomic, readonly) HostInfo* hostInfo; |
76 // The gesture interpreter used to handle gestures. | 77 // The gesture interpreter used to handle gestures. |
77 // This is valid only after the client has connected to the host. Always use | 78 // This is valid only after the client has connected to the host. Always use |
78 // RemotingClient.gestureInterpreter instead of storing the pointer separately. | 79 // RemotingClient.gestureInterpreter instead of storing the pointer separately. |
79 @property(nonatomic, readonly) remoting::GestureInterpreter* gestureInterpreter; | 80 @property(nonatomic, readonly) remoting::GestureInterpreter* gestureInterpreter; |
80 // @property(nonatomic, readonly) | 81 // The keyboard interpreter used to convert key events and send them to the |
81 // remoting::KeyboardInterpreter* keyboardInterpreter; | 82 // host. |
| 83 @property(nonatomic, readonly) |
| 84 remoting::KeyboardInterpreter* keyboardInterpreter; |
82 | 85 |
83 @end | 86 @end |
84 | 87 |
85 #endif // REMOTING_IOS_SESSION_REMOTING_CLIENT_H_ | 88 #endif // REMOTING_IOS_SESSION_REMOTING_CLIENT_H_ |
OLD | NEW |