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

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

Issue 19500017: Implement basic point-and-touch mouse input for Android client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/jni_interface.cc
diff --git a/remoting/client/jni/jni_interface.cc b/remoting/client/jni/jni_interface.cc
index ad42cc7e1f06b4d5d11791aa77a2df55f2fb4d0f..fc1296e686c433bbce5ba2ec79f7f8b05d6d3ec3 100644
--- a/remoting/client/jni/jni_interface.cc
+++ b/remoting/client/jni/jni_interface.cc
@@ -113,4 +113,16 @@ JNIEXPORT void JNICALL JNI_IMPLEMENTATION(scheduleRedrawNative)(
remoting::ChromotingJni::GetInstance()->session()->RedrawDesktop();
}
+JNIEXPORT void JNICALL JNI_IMPLEMENTATION(mouseActionNative)(
+ JNIEnv* env,
+ jobject that,
+ jint x,
+ jint y,
+ jint which_button) {
+ remoting::ChromotingJni::GetInstance()->session()->PerformMouseAction(
+ x,
+ y,
+ static_cast<remoting::protocol::MouseEvent_MouseButton>(which_button));
+}
+
} // extern "C"

Powered by Google App Engine
This is Rietveld 408576698