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

Unified Diff: remoting/ios/session/remoting_client.mm

Issue 2868383003: [CRD iOS] Send key events to the session. (Closed)
Patch Set: Clean up old key input code. No longer used. Created 3 years, 7 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/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
« remoting/client/native_device_keymap.cc ('K') | « remoting/ios/session/remoting_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698