1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chromecast/android/cast_jni_registrar.h"
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h"
9 #include "chromecast/android/cast_metrics_helper_android.h"
10 #include "chromecast/base/cast_sys_info_android.h"
11 #include "chromecast/browser/android/cast_window_android.h"
12 #include "chromecast/browser/android/cast_window_manager.h"
13 #include "chromecast/crash/android/crash_handler.h"
14 #include "components/external_video_surface/component_jni_registrar.h"
16 namespace chromecast
{
21 static base::android::RegistrationMethod kMethods
[] = {
22 { "CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni
},
23 { "CastSysInfoAndroid", CastSysInfoAndroid::RegisterJni
},
24 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni
},
25 { "CastWindowManager", shell::RegisterCastWindowManager
},
26 { "CrashHandler", CrashHandler::RegisterCastCrashJni
},
27 { "ExternalVideoSurfaceContainer",
28 external_video_surface::RegisterExternalVideoSurfaceJni
},
33 bool RegisterJni(JNIEnv
* env
) {
34 return RegisterNativeMethods(env
, kMethods
, arraysize(kMethods
));
37 } // namespace android
38 } // namespace chromecast