Home | History | Annotate | Download | only in android
      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.
      4 
      5 #include "chromecast/android/cast_jni_registrar.h"
      6 
      7 #include "base/android/jni_android.h"
      8 #include "base/android/jni_registrar.h"
      9 #include "chromecast/shell/browser/android/cast_window_android.h"
     10 #include "chromecast/shell/browser/android/cast_window_manager.h"
     11 
     12 namespace chromecast {
     13 namespace android {
     14 
     15 namespace {
     16 
     17 static base::android::RegistrationMethod kMethods[] = {
     18   { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni },
     19   { "CastWindowManager", shell::RegisterCastWindowManager },
     20 };
     21 
     22 }  // namespace
     23 
     24 bool RegisterJni(JNIEnv* env) {
     25   return RegisterNativeMethods(env, kMethods, arraysize(kMethods));
     26 }
     27 
     28 }  // namespace android
     29 }  // namespace chromecast
     30