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

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

Issue 214173002: Send TextEvent message from Android client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/jni/chromoting_jni_instance.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/jni/chromoting_jni_runtime.cc
diff --git a/remoting/client/jni/chromoting_jni_runtime.cc b/remoting/client/jni/chromoting_jni_runtime.cc
index 7a234879151ada65306cde2c1783b2cde74092cd..06cd7fff11d2b8a9dfab941e23695abe49df9dea 100644
--- a/remoting/client/jni/chromoting_jni_runtime.cc
+++ b/remoting/client/jni/chromoting_jni_runtime.cc
@@ -103,38 +103,42 @@ static void ScheduleRedraw(JNIEnv* env, jclass clazz) {
remoting::ChromotingJniRuntime::GetInstance()->session()->RedrawDesktop();
}
-static void MouseAction(JNIEnv* env,
- jclass clazz,
- jint x,
- jint y,
- jint whichButton,
- jboolean buttonDown) {
+static void SendMouseEvent(JNIEnv* env,
+ jclass clazz,
+ jint x,
+ jint y,
+ jint whichButton,
+ jboolean buttonDown) {
// Button must be within the bounds of the MouseEvent_MouseButton enum.
DCHECK(whichButton >= 0 && whichButton < 5);
- remoting::ChromotingJniRuntime::GetInstance()->session()->PerformMouseAction(
- x,
- y,
+ remoting::ChromotingJniRuntime::GetInstance()->session()->SendMouseEvent(
+ x, y,
static_cast<remoting::protocol::MouseEvent_MouseButton>(whichButton),
buttonDown);
}
-static void MouseWheelDeltaAction(JNIEnv* env,
- jclass clazz,
- jint delta_x,
- jint delta_y) {
- remoting::ChromotingJniRuntime::GetInstance()
- ->session()
- ->PerformMouseWheelDeltaAction(delta_x, delta_y);
+static void SendMouseWheelEvent(JNIEnv* env,
+ jclass clazz,
+ jint delta_x,
+ jint delta_y) {
+ remoting::ChromotingJniRuntime::GetInstance()->session()->SendMouseWheelEvent(
+ delta_x, delta_y);
}
-static void KeyboardAction(JNIEnv* env,
- jclass clazz,
- jint keyCode,
- jboolean keyDown) {
- remoting::ChromotingJniRuntime::GetInstance()
- ->session()
- ->PerformKeyboardAction(keyCode, keyDown);
+static void SendKeyEvent(JNIEnv* env,
+ jclass clazz,
+ jint keyCode,
+ jboolean keyDown) {
+ remoting::ChromotingJniRuntime::GetInstance()->session()->SendKeyEvent(
+ keyCode, keyDown);
+}
+
+static void SendTextEvent(JNIEnv* env,
+ jclass clazz,
+ jstring text) {
+ remoting::ChromotingJniRuntime::GetInstance()->session()->SendTextEvent(
+ ConvertJavaStringToUTF8(env, text));
}
// ChromotingJniRuntime implementation.
« no previous file with comments | « remoting/client/jni/chromoting_jni_instance.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698