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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file defines functions that implement the static methods declared in a 5 // This file defines functions that implement the static methods declared in a
6 // closely-related Java class in the platform-specific user interface 6 // closely-related Java class in the platform-specific user interface
7 // implementation. In effect, it is the entry point for all JNI calls *into* 7 // implementation. In effect, it is the entry point for all JNI calls *into*
8 // the C++ codebase from Java. The separate ChromotingJni class serves as the 8 // the C++ codebase from Java. The separate ChromotingJni class serves as the
9 // corresponding exit point, and is responsible for making all JNI calls 9 // corresponding exit point, and is responsible for making all JNI calls
10 // *out of* the C++ codebase into Java. 10 // *out of* the C++ codebase into Java.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 env->ReleaseStringUTFChars(pin_jstr, pin_cstr); 107 env->ReleaseStringUTFChars(pin_jstr, pin_cstr);
108 } 108 }
109 109
110 JNIEXPORT void JNICALL JNI_IMPLEMENTATION(scheduleRedrawNative)( 110 JNIEXPORT void JNICALL JNI_IMPLEMENTATION(scheduleRedrawNative)(
111 JNIEnv* env, 111 JNIEnv* env,
112 jobject that) { 112 jobject that) {
113 remoting::ChromotingJni::GetInstance()->session()->RedrawDesktop(); 113 remoting::ChromotingJni::GetInstance()->session()->RedrawDesktop();
114 } 114 }
115 115
116 JNIEXPORT void JNICALL JNI_IMPLEMENTATION(mouseActionNative)(
117 JNIEnv* env,
118 jobject that,
119 jint x,
120 jint y,
121 jint which_button) {
122 remoting::ChromotingJni::GetInstance()->session()->PerformMouseAction(
123 x,
124 y,
125 static_cast<remoting::protocol::MouseEvent_MouseButton>(which_button));
126 }
127
116 } // extern "C" 128 } // extern "C"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698