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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 #include "chrome/browser/ui/android/infobars/infobar_android.h" | 154 #include "chrome/browser/ui/android/infobars/infobar_android.h" |
155 #include "chrome/browser/ui/android/infobars/infobar_container_android.h" | 155 #include "chrome/browser/ui/android/infobars/infobar_container_android.h" |
156 #include "chrome/browser/ui/android/infobars/simple_confirm_infobar_builder.h" | 156 #include "chrome/browser/ui/android/infobars/simple_confirm_infobar_builder.h" |
157 #include "chrome/browser/ui/android/infobars/translate_infobar.h" | 157 #include "chrome/browser/ui/android/infobars/translate_infobar.h" |
158 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" | 158 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" |
159 #include "chrome/browser/ui/android/omnibox/omnibox_url_emphasizer.h" | 159 #include "chrome/browser/ui/android/omnibox/omnibox_url_emphasizer.h" |
160 #include "chrome/browser/ui/android/omnibox/omnibox_view_util.h" | 160 #include "chrome/browser/ui/android/omnibox/omnibox_view_util.h" |
161 #include "chrome/browser/ui/android/page_info/certificate_chain_helper.h" | 161 #include "chrome/browser/ui/android/page_info/certificate_chain_helper.h" |
162 #include "chrome/browser/ui/android/page_info/certificate_viewer_android.h" | 162 #include "chrome/browser/ui/android/page_info/certificate_viewer_android.h" |
163 #include "chrome/browser/ui/android/page_info/connection_info_popup_android.h" | 163 #include "chrome/browser/ui/android/page_info/connection_info_popup_android.h" |
164 #include "chrome/browser/ui/android/page_info/website_settings_popup_android.h" | 164 #include "chrome/browser/ui/android/page_info/page_info_popup_android.h" |
165 #include "chrome/browser/ui/android/snackbars/auto_signin_prompt_controller.h" | 165 #include "chrome/browser/ui/android/snackbars/auto_signin_prompt_controller.h" |
166 #include "chrome/browser/ui/android/ssl_client_certificate_request.h" | 166 #include "chrome/browser/ui/android/ssl_client_certificate_request.h" |
167 #include "chrome/browser/ui/android/tab_model/single_tab_model.h" | 167 #include "chrome/browser/ui/android/tab_model/single_tab_model.h" |
168 #include "chrome/browser/ui/android/tab_model/tab_model_jni_bridge.h" | 168 #include "chrome/browser/ui/android/tab_model/tab_model_jni_bridge.h" |
169 #include "chrome/browser/ui/android/tab_model/tab_model_selector_base.h" | 169 #include "chrome/browser/ui/android/tab_model/tab_model_selector_base.h" |
170 #include "chrome/browser/ui/android/toolbar/toolbar_model_android.h" | 170 #include "chrome/browser/ui/android/toolbar/toolbar_model_android.h" |
171 #include "chrome/browser/ui/android/usb_chooser_dialog_android.h" | 171 #include "chrome/browser/ui/android/usb_chooser_dialog_android.h" |
172 #include "components/dom_distiller/content/browser/android/content_jni_registrar
.h" | 172 #include "components/dom_distiller/content/browser/android/content_jni_registrar
.h" |
173 #include "components/dom_distiller/core/android/core_jni_registrar.h" | 173 #include "components/dom_distiller/core/android/core_jni_registrar.h" |
174 #include "components/gcm_driver/android/component_jni_registrar.h" | 174 #include "components/gcm_driver/android/component_jni_registrar.h" |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 DisplaySynchronizer::RegisterDisplaySynchronizerNatives}, | 434 DisplaySynchronizer::RegisterDisplaySynchronizerNatives}, |
435 {"GvrApi", GvrApi::RegisterGvrApiNatives}, | 435 {"GvrApi", GvrApi::RegisterGvrApiNatives}, |
436 {"NativeCallbacks", NativeCallbacks::RegisterNativeCallbacksNatives}, | 436 {"NativeCallbacks", NativeCallbacks::RegisterNativeCallbacksNatives}, |
437 #endif | 437 #endif |
438 {"WarmupManager", RegisterWarmupManager}, | 438 {"WarmupManager", RegisterWarmupManager}, |
439 {"WebApkInstaller", WebApkInstaller::Register}, | 439 {"WebApkInstaller", WebApkInstaller::Register}, |
440 {"WebApkUpdateManager", WebApkUpdateManager::Register}, | 440 {"WebApkUpdateManager", WebApkUpdateManager::Register}, |
441 {"WebApkUpdateDataFetcher", WebApkUpdateDataFetcher::Register}, | 441 {"WebApkUpdateDataFetcher", WebApkUpdateDataFetcher::Register}, |
442 {"WebContentsFactory", RegisterWebContentsFactory}, | 442 {"WebContentsFactory", RegisterWebContentsFactory}, |
443 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, | 443 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, |
444 {"WebsiteSettingsPopupAndroid", | 444 {"PageInfoPopupAndroid", |
445 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, | 445 PageInfoPopupAndroid::RegisterPageInfoPopupAndroid}, |
446 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) | 446 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) |
447 {"PrintingContext", | 447 {"PrintingContext", |
448 printing::PrintingContextAndroid::RegisterPrintingContext}, | 448 printing::PrintingContextAndroid::RegisterPrintingContext}, |
449 #endif | 449 #endif |
450 }; | 450 }; |
451 | 451 |
452 bool RegisterBrowserJNI(JNIEnv* env) { | 452 bool RegisterBrowserJNI(JNIEnv* env) { |
453 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 453 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
454 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 454 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
455 arraysize(kChromeRegisteredMethods)); | 455 arraysize(kChromeRegisteredMethods)); |
456 } | 456 } |
457 | 457 |
458 } // namespace android | 458 } // namespace android |
OLD | NEW |