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/browser/android/cast_window_android.h"
10 #include "chromecast/browser/android/cast_window_manager.h"
11 #include "chromecast/browser/android/external_video_surface_container_impl.h"
12 #include "chromecast/crash/android/crash_handler.h"
14 namespace chromecast
{
19 static base::android::RegistrationMethod kMethods
[] = {
20 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni
},
21 { "CastWindowManager", shell::RegisterCastWindowManager
},
22 { "CrashHandler", CrashHandler::RegisterCastCrashJni
},
23 { "ExternalVideoSurfaceContainer",
24 shell::RegisterExternalVideoSurfaceContainer
},
29 bool RegisterJni(JNIEnv
* env
) {
30 return RegisterNativeMethods(env
, kMethods
, arraysize(kMethods
));
33 } // namespace android
34 } // namespace chromecast