| 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 "content/browser/android/browser_jni_registrar.h" | 5 #include "content/browser/android/browser_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 "content/browser/accessibility/browser_accessibility_android.h" |
| 10 #include "content/browser/accessibility/browser_accessibility_manager_android.h" |
| 9 #include "content/browser/android/android_browser_process.h" | 11 #include "content/browser/android/android_browser_process.h" |
| 10 #include "content/browser/android/child_process_launcher_android.h" | 12 #include "content/browser/android/child_process_launcher_android.h" |
| 11 #include "content/browser/android/content_settings.h" | 13 #include "content/browser/android/content_settings.h" |
| 12 #include "content/browser/android/content_video_view.h" | 14 #include "content/browser/android/content_video_view.h" |
| 13 #include "content/browser/android/content_view_core_impl.h" | 15 #include "content/browser/android/content_view_core_impl.h" |
| 14 #include "content/browser/android/content_view_render_view.h" | 16 #include "content/browser/android/content_view_render_view.h" |
| 15 #include "content/browser/android/content_view_statics.h" | 17 #include "content/browser/android/content_view_statics.h" |
| 16 #include "content/browser/android/date_time_chooser_android.h" | 18 #include "content/browser/android/date_time_chooser_android.h" |
| 17 #include "content/browser/android/download_controller_android_impl.h" | 19 #include "content/browser/android/download_controller_android_impl.h" |
| 18 #include "content/browser/android/interstitial_page_delegate_android.h" | 20 #include "content/browser/android/interstitial_page_delegate_android.h" |
| 19 #include "content/browser/android/load_url_params.h" | 21 #include "content/browser/android/load_url_params.h" |
| 20 #include "content/browser/android/media_resource_getter_impl.h" | 22 #include "content/browser/android/media_resource_getter_impl.h" |
| 21 #include "content/browser/android/surface_texture_peer_browser_impl.h" | 23 #include "content/browser/android/surface_texture_peer_browser_impl.h" |
| 22 #include "content/browser/android/touch_point.h" | 24 #include "content/browser/android/touch_point.h" |
| 23 #include "content/browser/android/tracing_intent_handler.h" | 25 #include "content/browser/android/tracing_intent_handler.h" |
| 24 #include "content/browser/android/web_contents_observer_android.h" | 26 #include "content/browser/android/web_contents_observer_android.h" |
| 25 #include "content/browser/geolocation/location_api_adapter_android.h" | 27 #include "content/browser/geolocation/location_api_adapter_android.h" |
| 26 #include "content/browser/renderer_host/ime_adapter_android.h" | 28 #include "content/browser/renderer_host/ime_adapter_android.h" |
| 27 #include "content/browser/renderer_host/java/java_bound_object.h" | 29 #include "content/browser/renderer_host/java/java_bound_object.h" |
| 28 #include "content/browser/speech/speech_recognizer_impl_android.h" | 30 #include "content/browser/speech/speech_recognizer_impl_android.h" |
| 29 | 31 |
| 30 using content::SurfaceTexturePeerBrowserImpl; | 32 using content::SurfaceTexturePeerBrowserImpl; |
| 31 | 33 |
| 32 namespace { | 34 namespace { |
| 33 base::android::RegistrationMethod kContentRegisteredMethods[] = { | 35 base::android::RegistrationMethod kContentRegisteredMethods[] = { |
| 34 { "AndroidLocationApiAdapter", | 36 { "AndroidLocationApiAdapter", |
| 35 content::AndroidLocationApiAdapter::RegisterGeolocationService }, | 37 content::AndroidLocationApiAdapter::RegisterGeolocationService }, |
| 36 { "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess }, | 38 { "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess }, |
| 39 { "BrowserAccessibility", |
| 40 content::RegisterBrowserAccessibility }, |
| 41 { "BrowserAccessibilityManager", |
| 42 content::RegisterBrowserAccessibilityManager }, |
| 37 { "ChildProcessLauncher", content::RegisterChildProcessLauncher }, | 43 { "ChildProcessLauncher", content::RegisterChildProcessLauncher }, |
| 38 { "ContentSettings", content::ContentSettings::RegisterContentSettings }, | 44 { "ContentSettings", content::ContentSettings::RegisterContentSettings }, |
| 39 { "ContentViewRenderView", | 45 { "ContentViewRenderView", |
| 40 content::ContentViewRenderView::RegisterContentViewRenderView }, | 46 content::ContentViewRenderView::RegisterContentViewRenderView }, |
| 41 { "ContentVideoView", content::ContentVideoView::RegisterContentVideoView }, | 47 { "ContentVideoView", content::ContentVideoView::RegisterContentVideoView }, |
| 42 { "ContentViewCore", content::RegisterContentViewCore }, | 48 { "ContentViewCore", content::RegisterContentViewCore }, |
| 43 { "DateTimePickerAndroid", content::RegisterDateTimeChooserAndroid}, | 49 { "DateTimePickerAndroid", content::RegisterDateTimeChooserAndroid}, |
| 44 { "DownloadControllerAndroidImpl", | 50 { "DownloadControllerAndroidImpl", |
| 45 content::DownloadControllerAndroidImpl::RegisterDownloadController }, | 51 content::DownloadControllerAndroidImpl::RegisterDownloadController }, |
| 46 { "InterstitialPageDelegateAndroid", | 52 { "InterstitialPageDelegateAndroid", |
| (...skipping 16 matching lines...) Expand all Loading... |
| 63 namespace content { | 69 namespace content { |
| 64 namespace android { | 70 namespace android { |
| 65 | 71 |
| 66 bool RegisterBrowserJni(JNIEnv* env) { | 72 bool RegisterBrowserJni(JNIEnv* env) { |
| 67 return RegisterNativeMethods(env, kContentRegisteredMethods, | 73 return RegisterNativeMethods(env, kContentRegisteredMethods, |
| 68 arraysize(kContentRegisteredMethods)); | 74 arraysize(kContentRegisteredMethods)); |
| 69 } | 75 } |
| 70 | 76 |
| 71 } // namespace android | 77 } // namespace android |
| 72 } // namespace content | 78 } // namespace content |
| OLD | NEW |