OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 | 5 |
6 #include "remoting/client/jni/remoting_jni_registrar.h" | 6 #include "remoting/client/jni/remoting_jni_registrar.h" |
7 | 7 |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/android/jni_registrar.h" | 9 #include "base/android/jni_registrar.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "remoting/client/jni/chromoting_jni_runtime.h" | 11 #include "remoting/client/jni/chromoting_jni_runtime.h" |
12 #include "remoting/client/jni/jni_client.h" | 12 #include "remoting/client/jni/jni_client.h" |
13 #include "remoting/client/jni/jni_display_handler.h" | 13 #include "remoting/client/jni/jni_display_handler.h" |
14 #include "remoting/client/jni/jni_touch_event_data.h" | |
15 | 14 |
16 namespace remoting { | 15 namespace remoting { |
17 | 16 |
18 namespace { | 17 namespace { |
19 const base::android::RegistrationMethod kRemotingRegisteredMethods[] = { | 18 const base::android::RegistrationMethod kRemotingRegisteredMethods[] = { |
20 {"JniClient", JniClient::RegisterJni}, | 19 {"JniClient", JniClient::RegisterJni}, |
21 {"ChromotingJniRuntime", RegisterChromotingJniRuntime}, | 20 {"ChromotingJniRuntime", RegisterChromotingJniRuntime}, |
22 {"JniTouchEventData", JniTouchEventData::RegisterJni}, | |
23 {"JniDisplayHandler", JniDisplayHandler::RegisterJni} | 21 {"JniDisplayHandler", JniDisplayHandler::RegisterJni} |
24 }; | 22 }; |
25 } // namespace | 23 } // namespace |
26 | 24 |
27 bool RegisterJni(JNIEnv* env) { | 25 bool RegisterJni(JNIEnv* env) { |
28 return RegisterNativeMethods(env, kRemotingRegisteredMethods, | 26 return RegisterNativeMethods(env, kRemotingRegisteredMethods, |
29 arraysize(kRemotingRegisteredMethods)); | 27 arraysize(kRemotingRegisteredMethods)); |
30 } | 28 } |
31 | 29 |
32 } // namespace remoting | 30 } // namespace remoting |
OLD | NEW |