Chromium Code Reviews| Index: content/browser/android/browser_jni_registrar.cc |
| diff --git a/content/browser/android/browser_jni_registrar.cc b/content/browser/android/browser_jni_registrar.cc |
| index 808e3f3ebbc99007818de7fd3cd1302eebc188af..0b0ef282c02ddeb93772cba8c2d5302253acf58b 100644 |
| --- a/content/browser/android/browser_jni_registrar.cc |
| +++ b/content/browser/android/browser_jni_registrar.cc |
| @@ -6,11 +6,17 @@ |
| #include "base/android/jni_android.h" |
| #include "base/android/jni_registrar.h" |
| +#include "content/browser/android/browser_startup_controller.h" |
| +#include "content/browser/android/child_process_launcher_android.h" |
| +#include "content/browser/mojo/service_registrar_android.h" |
| +#include "content/browser/mojo/service_registry_android.h" |
| +#include "content/browser/renderer_host/input/motion_event_android.h" |
| +#include "mojo/android/system/core_impl.h" |
| + |
| +#if !defined(USE_AURA) |
| #include "content/browser/accessibility/browser_accessibility_android.h" |
| #include "content/browser/accessibility/browser_accessibility_manager_android.h" |
| #include "content/browser/android/background_sync_launcher_android.h" |
| -#include "content/browser/android/browser_startup_controller.h" |
| -#include "content/browser/android/child_process_launcher_android.h" |
| #include "content/browser/android/composited_touch_handle_drawable.h" |
| #include "content/browser/android/content_readback_handler.h" |
| #include "content/browser/android/content_video_view.h" |
| @@ -31,35 +37,35 @@ |
| #include "content/browser/media/android/media_drm_credential_manager.h" |
| #include "content/browser/media/android/media_resource_getter_impl.h" |
| #include "content/browser/media/android/media_session.h" |
| -#include "content/browser/mojo/service_registrar_android.h" |
| -#include "content/browser/mojo/service_registry_android.h" |
| #include "content/browser/power_save_blocker_android.h" |
| #include "content/browser/renderer_host/ime_adapter_android.h" |
| -#include "content/browser/renderer_host/input/motion_event_android.h" |
| #include "content/browser/renderer_host/input/synthetic_gesture_target_android.h" |
| #include "content/browser/screen_orientation/screen_orientation_delegate_android.h" |
| #include "content/browser/speech/speech_recognizer_impl_android.h" |
| #include "content/browser/time_zone_monitor_android.h" |
| #include "content/browser/web_contents/web_contents_android.h" |
| -#include "mojo/android/system/core_impl.h" |
| +#endif |
| namespace { |
| base::android::RegistrationMethod kContentRegisteredMethods[] = { |
| + {"BrowserStartupController", content::RegisterBrowserStartupController}, |
| + {"CoreImpl", mojo::android::RegisterCoreImpl}, |
| + {"MotionEventAndroid", |
| + content::MotionEventAndroid::RegisterMotionEventAndroid}, |
| + {"ChildProcessLauncher", content::RegisterChildProcessLauncher}, |
| +#if !defined(USE_AURA) |
|
no sievers
2015/10/20 19:24:22
we should split up the registrars
|
| {"AndroidLocationApiAdapter", |
| content::AndroidLocationApiAdapter::RegisterGeolocationService}, |
| {"BackgroundSyncLauncherAndroid", |
| content::BackgroundSyncLauncherAndroid::RegisterLauncher}, |
| {"BrowserAccessibilityManager", |
| content::RegisterBrowserAccessibilityManager}, |
| - {"BrowserStartupController", content::RegisterBrowserStartupController}, |
| - {"ChildProcessLauncher", content::RegisterChildProcessLauncher}, |
| {"ContentReadbackHandler", |
| content::ContentReadbackHandler::RegisterContentReadbackHandler}, |
| {"ContentVideoView", content::ContentVideoView::RegisterContentVideoView}, |
| {"ContentViewCore", content::RegisterContentViewCore}, |
| {"ContentViewRenderView", |
| content::ContentViewRenderView::RegisterContentViewRenderView}, |
| - {"CoreImpl", mojo::android::RegisterCoreImpl}, |
| {"DateTimePickerAndroid", content::RegisterDateTimeChooserAndroid}, |
| {"DownloadControllerAndroidImpl", |
| content::DownloadControllerAndroidImpl::RegisterDownloadController}, |
| @@ -77,8 +83,6 @@ base::android::RegistrationMethod kContentRegisteredMethods[] = { |
| {"MediaResourceGetterImpl", |
| content::MediaResourceGetterImpl::RegisterMediaResourceGetter}, |
| {"MediaSession", content::MediaSession::RegisterMediaSession}, |
| - {"MotionEventAndroid", |
| - content::MotionEventAndroid::RegisterMotionEventAndroid}, |
| {"MotionEventSynthesizer", |
| content::SyntheticGestureTargetAndroid::RegisterMotionEventSynthesizer}, |
| {"NavigationControllerAndroid", |
| @@ -99,6 +103,7 @@ base::android::RegistrationMethod kContentRegisteredMethods[] = { |
| {"WebContentsAndroid", content::WebContentsAndroid::Register}, |
| {"WebContentsObserver", content::RegisterWebContentsObserverProxy}, |
| {"WebViewStatics", content::RegisterWebViewStatics}, |
| +#endif |
| }; |
| } // namespace |