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

Unified Diff: remoting/client/jni/chromoting_jni_instance.cc

Issue 23532072: Draw the mouse cursor in Chromoting Android client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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/client/jni/chromoting_jni_instance.cc
diff --git a/remoting/client/jni/chromoting_jni_instance.cc b/remoting/client/jni/chromoting_jni_instance.cc
index 5eef55a9fbe24c471797a5353758280c7c510e6c..28822f6654f78469327c31adad6a3b1710c64b91 100644
--- a/remoting/client/jni/chromoting_jni_instance.cc
+++ b/remoting/client/jni/chromoting_jni_instance.cc
@@ -216,7 +216,14 @@ void ChromotingJniInstance::InjectClipboardEvent(
void ChromotingJniInstance::SetCursorShape(
const protocol::CursorShapeInfo& shape) {
- NOTIMPLEMENTED();
+ if (!jni_runtime_->display_task_runner()->BelongsToCurrentThread()) {
+ jni_runtime_->display_task_runner()->PostTask(
+ FROM_HERE,
+ base::Bind(&ChromotingJniInstance::SetCursorShape, this, shape));
+ return;
+ }
+
+ jni_runtime_->UpdateCursorShape(shape);
}
void ChromotingJniInstance::ConnectToHostOnDisplayThread() {

Powered by Google App Engine
This is Rietveld 408576698