Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / blimp / client / android / blimp_jni_registrar.cc
blob9bc8096f7c378ba7aa0c022c6b5963e2f524fdb4
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
3 // found in the LICENSE file.
5 #include "blimp/client/android/blimp_jni_registrar.h"
7 #include "base/android/jni_registrar.h"
8 #include "blimp/client/android/blimp_library_loader.h"
9 #include "blimp/client/android/blimp_view.h"
11 namespace {
13 base::android::RegistrationMethod kBlimpRegistrationMethods[] = {
14 {"BlimpLibraryLoader", blimp::RegisterBlimpLibraryLoaderJni},
15 {"BlimpView", blimp::BlimpView::RegisterJni},
18 } // namespace
20 namespace blimp {
22 bool RegisterBlimpJni(JNIEnv* env) {
23 return base::android::RegisterNativeMethods(
24 env, kBlimpRegistrationMethods, arraysize(kBlimpRegistrationMethods));
27 } // namespace blimp