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