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

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

Issue 2862893003: [CRD iOS] Inject mouse events to the host (Closed)
Patch Set: Resolve Feedback 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
« no previous file with comments | « remoting/client/ios/client_gestures.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/ios/session/remoting_client.mm
diff --git a/remoting/client/ios/session/remoting_client.mm b/remoting/client/ios/session/remoting_client.mm
index c56275bd169ae27c17f54269db7d6fba9ab39a3a..da636ce29b94f561e15be6f448141d4c73495c0e 100644
--- a/remoting/client/ios/session/remoting_client.mm
+++ b/remoting/client/ios/session/remoting_client.mm
@@ -66,6 +66,7 @@ NSString* const kHostSessionPin = @"kHostSessionPin";
- (void)connectToHost:(HostInfo*)hostInfo
username:(NSString*)username
accessToken:(NSString*)accessToken {
+ DCHECK(_runtime->ui_task_runner()->BelongsToCurrentThread());
DCHECK(hostInfo);
DCHECK(hostInfo.jabberId);
DCHECK(hostInfo.hostId);
@@ -113,21 +114,19 @@ NSString* const kHostSessionPin = @"kHostSessionPin";
_displayHandler = [[GlDisplayHandler alloc] init];
_displayHandler.delegate = self;
+
+ _session.reset(new remoting::ChromotingSession(
+ _sessonDelegate->GetWeakPtr(), [_displayHandler CreateCursorShapeStub],
+ [_displayHandler CreateVideoRenderer], audioPlayer, info,
+ client_auth_config));
+ _session->Connect();
+
__weak GlDisplayHandler* weakDisplayHandler = _displayHandler;
_gestureInterpreter.reset(new remoting::GestureInterpreter(
base::BindBlockArc(^(const remoting::ViewMatrix& matrix) {
[weakDisplayHandler onPixelTransformationChanged:matrix];
- })));
-
- _runtime->ui_task_runner()->PostTask(
- FROM_HERE, base::BindBlockArc(^{
- _session.reset(new remoting::ChromotingSession(
- _sessonDelegate->GetWeakPtr(),
- [_displayHandler CreateCursorShapeStub],
- [_displayHandler CreateVideoRenderer], audioPlayer, info,
- client_auth_config));
- _session->Connect();
- }));
+ }),
+ _session.get()));
}
#pragma mark - Eventing
« no previous file with comments | « remoting/client/ios/client_gestures.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698