| 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 "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 #include "components/variations/android/component_jni_registrar.h" | 198 #include "components/variations/android/component_jni_registrar.h" |
| 199 #include "components/web_contents_delegate_android/component_jni_registrar.h" | 199 #include "components/web_contents_delegate_android/component_jni_registrar.h" |
| 200 #include "device/vr/features/features.h" | 200 #include "device/vr/features/features.h" |
| 201 #include "printing/features/features.h" | 201 #include "printing/features/features.h" |
| 202 | 202 |
| 203 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) | 203 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) |
| 204 #include "printing/printing_context_android.h" | 204 #include "printing/printing_context_android.h" |
| 205 #endif | 205 #endif |
| 206 | 206 |
| 207 #if BUILDFLAG(ENABLE_VR) | 207 #if BUILDFLAG(ENABLE_VR) |
| 208 #include "chrome/browser/android/vr_shell/vr_core_info.h" |
| 208 #include "chrome/browser/android/vr_shell/vr_shell.h" | 209 #include "chrome/browser/android/vr_shell/vr_shell.h" |
| 209 #include "chrome/browser/android/vr_shell/vr_shell_delegate.h" | 210 #include "chrome/browser/android/vr_shell/vr_shell_delegate.h" |
| 210 #include "third_party/gvr-android-sdk/display_synchronizer_jni.h" | 211 #include "third_party/gvr-android-sdk/display_synchronizer_jni.h" |
| 211 #include "third_party/gvr-android-sdk/gvr_api_jni.h" | 212 #include "third_party/gvr-android-sdk/gvr_api_jni.h" |
| 212 #include "third_party/gvr-android-sdk/native_callbacks_jni.h" | 213 #include "third_party/gvr-android-sdk/native_callbacks_jni.h" |
| 213 #endif | 214 #endif |
| 214 | 215 |
| 215 #if BUILDFLAG(ENABLE_OFFLINE_PAGES_HARNESS) | 216 #if BUILDFLAG(ENABLE_OFFLINE_PAGES_HARNESS) |
| 216 #include "chrome/browser/android/offline_pages/evaluation/offline_page_evaluatio
n_bridge.h" | 217 #include "chrome/browser/android/offline_pages/evaluation/offline_page_evaluatio
n_bridge.h" |
| 217 #endif | 218 #endif |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 {"TranslateCompactInfoBar", RegisterTranslateCompactInfoBar}, | 441 {"TranslateCompactInfoBar", RegisterTranslateCompactInfoBar}, |
| 441 {"TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate}, | 442 {"TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate}, |
| 442 {"TtsPlatformImpl", TtsPlatformImplAndroid::Register}, | 443 {"TtsPlatformImpl", TtsPlatformImplAndroid::Register}, |
| 443 {"UmaSessionStats", RegisterUmaSessionStats}, | 444 {"UmaSessionStats", RegisterUmaSessionStats}, |
| 444 {"UrlFilterBridge", UrlFilterBridge::Register}, | 445 {"UrlFilterBridge", UrlFilterBridge::Register}, |
| 445 {"UrlUtilities", RegisterUrlUtilities}, | 446 {"UrlUtilities", RegisterUrlUtilities}, |
| 446 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register}, | 447 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register}, |
| 447 {"Variations", variations::android::RegisterVariations}, | 448 {"Variations", variations::android::RegisterVariations}, |
| 448 {"VariationsSession", chrome::android::RegisterVariationsSession}, | 449 {"VariationsSession", chrome::android::RegisterVariationsSession}, |
| 449 #if BUILDFLAG(ENABLE_VR) | 450 #if BUILDFLAG(ENABLE_VR) |
| 451 {"VrCoreInfo", vr_shell::RegisterVrCoreInfo}, |
| 450 {"VrShell", vr_shell::RegisterVrShell}, | 452 {"VrShell", vr_shell::RegisterVrShell}, |
| 451 {"VrShellDelegate", vr_shell::RegisterVrShellDelegate}, | 453 {"VrShellDelegate", vr_shell::RegisterVrShellDelegate}, |
| 452 {"DisplaySynchronizer", | 454 {"DisplaySynchronizer", |
| 453 DisplaySynchronizer::RegisterDisplaySynchronizerNatives}, | 455 DisplaySynchronizer::RegisterDisplaySynchronizerNatives}, |
| 454 {"GvrApi", GvrApi::RegisterGvrApiNatives}, | 456 {"GvrApi", GvrApi::RegisterGvrApiNatives}, |
| 455 {"NativeCallbacks", NativeCallbacks::RegisterNativeCallbacksNatives}, | 457 {"NativeCallbacks", NativeCallbacks::RegisterNativeCallbacksNatives}, |
| 456 #endif | 458 #endif |
| 457 {"WarmupManager", RegisterWarmupManager}, | 459 {"WarmupManager", RegisterWarmupManager}, |
| 458 {"WebApkInstaller", WebApkInstaller::Register}, | 460 {"WebApkInstaller", WebApkInstaller::Register}, |
| 459 {"WebApkUpdateManager", WebApkUpdateManager::Register}, | 461 {"WebApkUpdateManager", WebApkUpdateManager::Register}, |
| 460 {"WebApkUpdateDataFetcher", WebApkUpdateDataFetcher::Register}, | 462 {"WebApkUpdateDataFetcher", WebApkUpdateDataFetcher::Register}, |
| 461 {"WebContentsFactory", RegisterWebContentsFactory}, | 463 {"WebContentsFactory", RegisterWebContentsFactory}, |
| 462 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, | 464 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, |
| 463 {"PageInfoPopupAndroid", | 465 {"PageInfoPopupAndroid", |
| 464 PageInfoPopupAndroid::RegisterPageInfoPopupAndroid}, | 466 PageInfoPopupAndroid::RegisterPageInfoPopupAndroid}, |
| 465 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) | 467 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) |
| 466 {"PrintingContext", | 468 {"PrintingContext", |
| 467 printing::PrintingContextAndroid::RegisterPrintingContext}, | 469 printing::PrintingContextAndroid::RegisterPrintingContext}, |
| 468 #endif | 470 #endif |
| 469 }; | 471 }; |
| 470 | 472 |
| 471 bool RegisterBrowserJNI(JNIEnv* env) { | 473 bool RegisterBrowserJNI(JNIEnv* env) { |
| 472 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 474 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
| 473 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 475 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
| 474 arraysize(kChromeRegisteredMethods)); | 476 arraysize(kChromeRegisteredMethods)); |
| 475 } | 477 } |
| 476 | 478 |
| 477 } // namespace android | 479 } // namespace android |
| OLD | NEW |