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/android/android_browser_process.h" | 9 #include "content/browser/android/android_browser_process.h" |
10 #include "content/browser/android/child_process_launcher_android.h" | 10 #include "content/browser/android/child_process_launcher_android.h" |
11 #include "content/browser/android/content_settings.h" | 11 #include "content/browser/android/content_settings.h" |
12 #include "content/browser/android/content_video_view.h" | 12 #include "content/browser/android/content_video_view.h" |
13 #include "content/browser/android/content_view_core_impl.h" | 13 #include "content/browser/android/content_view_core_impl.h" |
14 #include "content/browser/android/content_view_render_view.h" | 14 #include "content/browser/android/content_view_render_view.h" |
15 #include "content/browser/android/content_view_statics.h" | 15 #include "content/browser/android/content_view_statics.h" |
16 #include "content/browser/android/date_time_chooser_android.h" | 16 #include "content/browser/android/date_time_chooser_android.h" |
17 #include "content/browser/android/download_controller_android_impl.h" | 17 #include "content/browser/android/download_controller_android_impl.h" |
18 #include "content/browser/android/interstitial_page_delegate_android.h" | 18 #include "content/browser/android/interstitial_page_delegate_android.h" |
19 #include "content/browser/android/load_url_params.h" | 19 #include "content/browser/android/load_url_params.h" |
20 #include "content/browser/android/media_resource_getter_impl.h" | 20 #include "content/browser/android/media_resource_getter_impl.h" |
21 #include "content/browser/android/surface_texture_peer_browser_impl.h" | 21 #include "content/browser/android/surface_texture_peer_browser_impl.h" |
22 #include "content/browser/android/touch_point.h" | 22 #include "content/browser/android/touch_point.h" |
23 #include "content/browser/android/tracing_intent_handler.h" | 23 #include "content/browser/android/tracing_intent_handler.h" |
24 #include "content/browser/android/web_contents_observer_android.h" | 24 #include "content/browser/android/web_contents_observer_android.h" |
25 #include "content/browser/geolocation/location_api_adapter_android.h" | 25 #include "content/browser/geolocation/location_api_adapter_android.h" |
26 #include "content/browser/renderer_host/ime_adapter_android.h" | 26 #include "content/browser/renderer_host/ime_adapter_android.h" |
27 #include "content/browser/renderer_host/java/java_bound_object.h" | 27 #include "content/browser/renderer_host/java/java_bound_object.h" |
28 #include "content/browser/speech/speech_recognizer_impl_android.h" | 28 #include "content/browser/speech/speech_recognizer_impl_android.h" |
| 29 #include "content/browser/vibration/vibration_service_impl_android.h" |
29 | 30 |
30 using content::SurfaceTexturePeerBrowserImpl; | 31 using content::SurfaceTexturePeerBrowserImpl; |
31 | 32 |
32 namespace { | 33 namespace { |
33 base::android::RegistrationMethod kContentRegisteredMethods[] = { | 34 base::android::RegistrationMethod kContentRegisteredMethods[] = { |
34 { "AndroidLocationApiAdapter", | 35 { "AndroidLocationApiAdapter", |
35 content::AndroidLocationApiAdapter::RegisterGeolocationService }, | 36 content::AndroidLocationApiAdapter::RegisterGeolocationService }, |
36 { "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess }, | 37 { "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess }, |
37 { "ChildProcessLauncher", content::RegisterChildProcessLauncher }, | 38 { "ChildProcessLauncher", content::RegisterChildProcessLauncher }, |
38 { "ContentSettings", content::ContentSettings::RegisterContentSettings }, | 39 { "ContentSettings", content::ContentSettings::RegisterContentSettings }, |
39 { "ContentViewRenderView", | 40 { "ContentViewRenderView", |
40 content::ContentViewRenderView::RegisterContentViewRenderView }, | 41 content::ContentViewRenderView::RegisterContentViewRenderView }, |
41 { "ContentVideoView", content::ContentVideoView::RegisterContentVideoView }, | 42 { "ContentVideoView", content::ContentVideoView::RegisterContentVideoView }, |
42 { "ContentViewCore", content::RegisterContentViewCore }, | 43 { "ContentViewCore", content::RegisterContentViewCore }, |
43 { "DateTimePickerAndroid", content::RegisterDateTimeChooserAndroid}, | 44 { "DateTimePickerAndroid", content::RegisterDateTimeChooserAndroid}, |
44 { "DownloadControllerAndroidImpl", | 45 { "DownloadControllerAndroidImpl", |
45 content::DownloadControllerAndroidImpl::RegisterDownloadController }, | 46 content::DownloadControllerAndroidImpl::RegisterDownloadController }, |
46 { "InterstitialPageDelegateAndroid", | 47 { "InterstitialPageDelegateAndroid", |
47 content::InterstitialPageDelegateAndroid | 48 content::InterstitialPageDelegateAndroid |
48 ::RegisterInterstitialPageDelegateAndroid }, | 49 ::RegisterInterstitialPageDelegateAndroid }, |
49 { "MediaResourceGetterImpl", | 50 { "MediaResourceGetterImpl", |
50 content::MediaResourceGetterImpl::RegisterMediaResourceGetter }, | 51 content::MediaResourceGetterImpl::RegisterMediaResourceGetter }, |
51 { "LoadUrlParams", content::RegisterLoadUrlParams }, | 52 { "LoadUrlParams", content::RegisterLoadUrlParams }, |
52 { "RegisterImeAdapter", content::RegisterImeAdapter }, | 53 { "RegisterImeAdapter", content::RegisterImeAdapter }, |
53 { "SpeechRecognizerImplAndroid", | 54 { "SpeechRecognizerImplAndroid", |
54 content::SpeechRecognizerImplAndroid::RegisterSpeechRecognizer }, | 55 content::SpeechRecognizerImplAndroid::RegisterSpeechRecognizer }, |
55 { "TouchPoint", content::RegisterTouchPoint }, | 56 { "TouchPoint", content::RegisterTouchPoint }, |
56 { "TracingIntentHandler", content::RegisterTracingIntentHandler }, | 57 { "TracingIntentHandler", content::RegisterTracingIntentHandler }, |
| 58 { "VibrationService", content::VibrationServiceImplAndroid::Register }, |
57 { "WebContentsObserverAndroid", content::RegisterWebContentsObserverAndroid }, | 59 { "WebContentsObserverAndroid", content::RegisterWebContentsObserverAndroid }, |
58 { "WebViewStatics", content::RegisterWebViewStatics }, | 60 { "WebViewStatics", content::RegisterWebViewStatics }, |
59 }; | 61 }; |
60 | 62 |
61 } // namespace | 63 } // namespace |
62 | 64 |
63 namespace content { | 65 namespace content { |
64 namespace android { | 66 namespace android { |
65 | 67 |
66 bool RegisterBrowserJni(JNIEnv* env) { | 68 bool RegisterBrowserJni(JNIEnv* env) { |
67 return RegisterNativeMethods(env, kContentRegisteredMethods, | 69 return RegisterNativeMethods(env, kContentRegisteredMethods, |
68 arraysize(kContentRegisteredMethods)); | 70 arraysize(kContentRegisteredMethods)); |
69 } | 71 } |
70 | 72 |
71 } // namespace android | 73 } // namespace android |
72 } // namespace content | 74 } // namespace content |
OLD | NEW |