| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/android/chrome_jni_registrar.h" | 5 #include "chrome/browser/android/chrome_jni_registrar.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_registrar.h" | 8 #include "base/android/jni_registrar.h" |
| 9 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" |
| 9 #include "chrome/browser/android/content_view_util.h" | 10 #include "chrome/browser/android/content_view_util.h" |
| 10 #include "chrome/browser/android/intent_helper.h" | 11 #include "chrome/browser/android/intent_helper.h" |
| 11 #include "chrome/browser/android/process_utils.h" | 12 #include "chrome/browser/android/process_utils.h" |
| 12 #include "chrome/browser/component/web_contents_delegate_android/component_jni_r
egistrar.h" | 13 #include "chrome/browser/component/web_contents_delegate_android/component_jni_r
egistrar.h" |
| 13 #include "chrome/browser/history/android/sqlite_cursor.h" | 14 #include "chrome/browser/history/android/sqlite_cursor.h" |
| 14 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" | 15 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" |
| 15 | 16 |
| 16 namespace chrome { | 17 namespace chrome { |
| 17 namespace android { | 18 namespace android { |
| 18 | 19 |
| 19 static base::android::RegistrationMethod kChromeRegisteredMethods[] = { | 20 static base::android::RegistrationMethod kChromeRegisteredMethods[] = { |
| 21 { "ChromeWebContentsDelegateAndroid", |
| 22 RegisterChromeWebContentsDelegateAndroid }, |
| 20 { "ContentViewUtil", RegisterContentViewUtil }, | 23 { "ContentViewUtil", RegisterContentViewUtil }, |
| 21 { "IntentHelper", RegisterIntentHelper }, | 24 { "IntentHelper", RegisterIntentHelper }, |
| 22 { "JavascriptAppModalDialog", | 25 { "JavascriptAppModalDialog", |
| 23 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog }, | 26 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog }, |
| 24 { "ProcessUtils", RegisterProcessUtils }, | 27 { "ProcessUtils", RegisterProcessUtils }, |
| 25 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor}, | 28 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor}, |
| 26 }; | 29 }; |
| 27 | 30 |
| 28 bool RegisterJni(JNIEnv* env) { | 31 bool RegisterJni(JNIEnv* env) { |
| 29 web_contents_delegate_android::RegisterJni(env); | 32 web_contents_delegate_android::RegisterJni(env); |
| 30 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 33 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
| 31 arraysize(kChromeRegisteredMethods)); | 34 arraysize(kChromeRegisteredMethods)); |
| 32 } | 35 } |
| 33 | 36 |
| 34 } // namespace android | 37 } // namespace android |
| 35 } // namespace chrome | 38 } // namespace chrome |
| OLD | NEW |