Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / shell / android / shell_jni_registrar.cc
1 // Copyright (c) 2012 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 "content/shell/android/shell_jni_registrar.h"
6
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h"
9 #include "content/shell/android/shell_manager.h"
10 #include "content/shell/browser/shell.h"
11 #include "content/shell/browser/shell_mojo_test_utils_android.h"
12
13 namespace {
14
15 static base::android::RegistrationMethod kShellRegistrationMethods[] = {
16     {"Shell", content::Shell::Register},
17     {"ShellManager", content::RegisterShellManager},
18     {"ShellMojoTestUtils", content::RegisterShellMojoTestUtils},
19 };
20
21 }  // namespace
22
23 namespace content {
24 namespace android {
25
26 bool RegisterShellJni(JNIEnv* env) {
27   return RegisterNativeMethods(env, kShellRegistrationMethods,
28                                arraysize(kShellRegistrationMethods));
29 }
30
31 }  // namespace android
32 }  // namespace content