| 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" | 9 #include "content/browser/accessibility/browser_accessibility_android.h" |
| 10 #include "content/browser/accessibility/browser_accessibility_manager_android.h" | 10 #include "content/browser/accessibility/browser_accessibility_manager_android.h" |
| 11 #include "content/browser/android/background_sync_launcher_android.h" | |
| 12 #include "content/browser/android/background_sync_network_observer_android.h" | 11 #include "content/browser/android/background_sync_network_observer_android.h" |
| 13 #include "content/browser/android/browser_startup_controller.h" | 12 #include "content/browser/android/browser_startup_controller.h" |
| 14 #include "content/browser/android/child_process_launcher_android.h" | 13 #include "content/browser/android/child_process_launcher_android.h" |
| 15 #include "content/browser/android/composited_touch_handle_drawable.h" | 14 #include "content/browser/android/composited_touch_handle_drawable.h" |
| 16 #include "content/browser/android/content_readback_handler.h" | 15 #include "content/browser/android/content_readback_handler.h" |
| 17 #include "content/browser/android/content_video_view.h" | 16 #include "content/browser/android/content_video_view.h" |
| 18 #include "content/browser/android/content_view_core_impl.h" | 17 #include "content/browser/android/content_view_core_impl.h" |
| 19 #include "content/browser/android/content_view_render_view.h" | 18 #include "content/browser/android/content_view_render_view.h" |
| 20 #include "content/browser/android/content_view_statics.h" | 19 #include "content/browser/android/content_view_statics.h" |
| 21 #include "content/browser/android/date_time_chooser_android.h" | 20 #include "content/browser/android/date_time_chooser_android.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 42 #include "content/browser/speech/speech_recognizer_impl_android.h" | 41 #include "content/browser/speech/speech_recognizer_impl_android.h" |
| 43 #include "content/browser/time_zone_monitor_android.h" | 42 #include "content/browser/time_zone_monitor_android.h" |
| 44 #include "content/browser/vr/android/cardboard/cardboard_vr_device.h" | 43 #include "content/browser/vr/android/cardboard/cardboard_vr_device.h" |
| 45 #include "content/browser/web_contents/web_contents_android.h" | 44 #include "content/browser/web_contents/web_contents_android.h" |
| 46 #include "mojo/android/system/core_impl.h" | 45 #include "mojo/android/system/core_impl.h" |
| 47 | 46 |
| 48 namespace { | 47 namespace { |
| 49 base::android::RegistrationMethod kContentRegisteredMethods[] = { | 48 base::android::RegistrationMethod kContentRegisteredMethods[] = { |
| 50 {"AndroidLocationApiAdapter", | 49 {"AndroidLocationApiAdapter", |
| 51 content::AndroidLocationApiAdapter::RegisterGeolocationService}, | 50 content::AndroidLocationApiAdapter::RegisterGeolocationService}, |
| 52 {"BackgroundSyncLauncherAndroid", | |
| 53 content::BackgroundSyncLauncherAndroid::RegisterLauncher}, | |
| 54 {"BackgroundSyncNetworkObserverAndroid", | 51 {"BackgroundSyncNetworkObserverAndroid", |
| 55 content::BackgroundSyncNetworkObserverAndroid::Observer:: | 52 content::BackgroundSyncNetworkObserverAndroid::Observer:: |
| 56 RegisterNetworkObserver}, | 53 RegisterNetworkObserver}, |
| 57 {"BrowserAccessibilityManager", | 54 {"BrowserAccessibilityManager", |
| 58 content::RegisterBrowserAccessibilityManager}, | 55 content::RegisterBrowserAccessibilityManager}, |
| 59 {"BrowserStartupController", content::RegisterBrowserStartupController}, | 56 {"BrowserStartupController", content::RegisterBrowserStartupController}, |
| 60 #if defined(ENABLE_WEBVR) | 57 #if defined(ENABLE_WEBVR) |
| 61 {"CardboardVRDevice", | 58 {"CardboardVRDevice", |
| 62 content::CardboardVRDevice::RegisterCardboardVRDevice}, | 59 content::CardboardVRDevice::RegisterCardboardVRDevice}, |
| 63 #endif | 60 #endif |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 namespace content { | 112 namespace content { |
| 116 namespace android { | 113 namespace android { |
| 117 | 114 |
| 118 bool RegisterBrowserJni(JNIEnv* env) { | 115 bool RegisterBrowserJni(JNIEnv* env) { |
| 119 return RegisterNativeMethods(env, kContentRegisteredMethods, | 116 return RegisterNativeMethods(env, kContentRegisteredMethods, |
| 120 arraysize(kContentRegisteredMethods)); | 117 arraysize(kContentRegisteredMethods)); |
| 121 } | 118 } |
| 122 | 119 |
| 123 } // namespace android | 120 } // namespace android |
| 124 } // namespace content | 121 } // namespace content |
| OLD | NEW |