Index: remoting/ios/session/remoting_client.mm |
diff --git a/remoting/ios/session/remoting_client.mm b/remoting/ios/session/remoting_client.mm |
index be1fee36fc241606d4ecbdc21f8e9a46c4056af5..967044f477f32a11a6dee246cd06c7b92d505e36 100644 |
--- a/remoting/ios/session/remoting_client.mm |
+++ b/remoting/ios/session/remoting_client.mm |
@@ -21,6 +21,7 @@ |
#include "remoting/client/chromoting_session.h" |
#include "remoting/client/connect_to_host_info.h" |
#include "remoting/client/gesture_interpreter.h" |
+#include "remoting/client/input/keyboard_interpreter.h" |
#include "remoting/ios/session/remoting_client_session_delegate.h" |
#include "remoting/protocol/session.h" |
#include "remoting/protocol/video_renderer.h" |
@@ -40,7 +41,7 @@ NSString* const kHostSessionPin = @"kHostSessionPin"; |
// Call _secretFetchedCallback on the network thread. |
remoting::protocol::SecretFetchedCallback _secretFetchedCallback; |
std::unique_ptr<remoting::GestureInterpreter> _gestureInterpreter; |
- // std::unique_ptr<remoting::KeyboardInterpreter> _keyboardInterpreter; |
+ std::unique_ptr<remoting::KeyboardInterpreter> _keyboardInterpreter; |
} |
@end |
@@ -128,6 +129,8 @@ NSString* const kHostSessionPin = @"kHostSessionPin"; |
[weakDisplayHandler onPixelTransformationChanged:matrix]; |
}), |
_session.get())); |
+ |
+ _keyboardInterpreter.reset(new remoting::KeyboardInterpreter(_session.get())); |
} |
- (void)disconnectFromHost { |
@@ -159,6 +162,10 @@ NSString* const kHostSessionPin = @"kHostSessionPin"; |
return _gestureInterpreter.get(); |
} |
+- (remoting::KeyboardInterpreter*)keyboardInterpreter { |
+ return _keyboardInterpreter.get(); |
+} |
+ |
#pragma mark - ChromotingSession::Delegate |
- (void)onConnectionState:(remoting::protocol::ConnectionToHost::State)state |