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

Side by Side Diff: remoting/host/android/remoting_host_jni_registrar.cc

Issue 1867433002: [remoting android] Add native library and JNI glue for host. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "remoting/host/android/remoting_host_jni_registrar.h"
6 #include "remoting/client/jni/remoting_jni_registrar.h"
7 6
8 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
9 #include "base/android/jni_registrar.h" 8 #include "base/android/jni_registrar.h"
10 #include "base/macros.h" 9 #include "base/macros.h"
11 #include "remoting/client/jni/chromoting_jni_runtime.h" 10 #include "remoting/host/android/jni_host.h"
12 #include "remoting/client/jni/jni_client.h"
13 #include "remoting/client/jni/jni_touch_event_data.h"
14 11
15 namespace remoting { 12 namespace remoting {
16 13
17 namespace { 14 namespace {
18 const base::android::RegistrationMethod kRemotingRegisteredMethods[] = { 15 const base::android::RegistrationMethod kRemotingRegisteredMethods[] = {
19 {"JniClient", JniClient::RegisterJni}, 16 {"JniHost", JniHost::RegisterJni},
20 {"ChromotingJniRuntime", RegisterChromotingJniRuntime},
21 {"JniTouchEventData", JniTouchEventData::RegisterJni},
22 }; 17 };
23 } // namespace 18 } // namespace
24 19
25 bool RegisterJni(JNIEnv* env) { 20 bool RegisterJni(JNIEnv* env) {
26 return RegisterNativeMethods(env, kRemotingRegisteredMethods, 21 return RegisterNativeMethods(env, kRemotingRegisteredMethods,
27 arraysize(kRemotingRegisteredMethods)); 22 arraysize(kRemotingRegisteredMethods));
28 } 23 }
29 24
30 } // namespace remoting 25 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698