| 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/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "chrome/browser/android/accessibility_util.h" | 10 #include "chrome/browser/android/accessibility_util.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 #include "chrome/browser/ui/android/context_menu_helper.h" | 55 #include "chrome/browser/ui/android/context_menu_helper.h" |
| 56 #include "chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android
.h" | 56 #include "chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android
.h" |
| 57 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" | 57 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" |
| 58 #include "chrome/browser/ui/android/infobars/infobar_android.h" | 58 #include "chrome/browser/ui/android/infobars/infobar_android.h" |
| 59 #include "chrome/browser/ui/android/infobars/infobar_container_android.h" | 59 #include "chrome/browser/ui/android/infobars/infobar_container_android.h" |
| 60 #include "chrome/browser/ui/android/infobars/save_password_infobar.h" | 60 #include "chrome/browser/ui/android/infobars/save_password_infobar.h" |
| 61 #include "chrome/browser/ui/android/infobars/translate_infobar.h" | 61 #include "chrome/browser/ui/android/infobars/translate_infobar.h" |
| 62 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" | 62 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" |
| 63 #include "chrome/browser/ui/android/navigation_popup.h" | 63 #include "chrome/browser/ui/android/navigation_popup.h" |
| 64 #include "chrome/browser/ui/android/ssl_client_certificate_request.h" | 64 #include "chrome/browser/ui/android/ssl_client_certificate_request.h" |
| 65 #include "chrome/browser/ui/android/tab_model/tab_model_base.h" |
| 65 #include "chrome/browser/ui/android/toolbar/toolbar_model_android.h" | 66 #include "chrome/browser/ui/android/toolbar/toolbar_model_android.h" |
| 66 #include "chrome/browser/ui/android/website_settings_popup_android.h" | 67 #include "chrome/browser/ui/android/website_settings_popup_android.h" |
| 67 #include "components/autofill/core/browser/android/component_jni_registrar.h" | 68 #include "components/autofill/core/browser/android/component_jni_registrar.h" |
| 68 #include "components/dom_distiller/android/component_jni_registrar.h" | 69 #include "components/dom_distiller/android/component_jni_registrar.h" |
| 69 #include "components/navigation_interception/component_jni_registrar.h" | 70 #include "components/navigation_interception/component_jni_registrar.h" |
| 70 #include "components/web_contents_delegate_android/component_jni_registrar.h" | 71 #include "components/web_contents_delegate_android/component_jni_registrar.h" |
| 71 | 72 |
| 72 #if defined(ENABLE_PRINTING) && !defined(ENABLE_FULL_PRINTING) | 73 #if defined(ENABLE_PRINTING) && !defined(ENABLE_FULL_PRINTING) |
| 73 #include "printing/printing_context_android.h" | 74 #include "printing/printing_context_android.h" |
| 74 #endif | 75 #endif |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 { "ProfileAndroid", ProfileAndroid::RegisterProfileAndroid }, | 149 { "ProfileAndroid", ProfileAndroid::RegisterProfileAndroid }, |
| 149 { "ProfileDownloaderAndroid", ProfileDownloaderAndroid::Register }, | 150 { "ProfileDownloaderAndroid", ProfileDownloaderAndroid::Register }, |
| 150 { "ProfileSyncService", ProfileSyncServiceAndroid::Register }, | 151 { "ProfileSyncService", ProfileSyncServiceAndroid::Register }, |
| 151 { "RecentlyClosedBridge", RecentlyClosedTabsBridge::Register }, | 152 { "RecentlyClosedBridge", RecentlyClosedTabsBridge::Register }, |
| 152 { "SavePasswordInfoBar", RegisterSavePasswordInfoBar }, | 153 { "SavePasswordInfoBar", RegisterSavePasswordInfoBar }, |
| 153 { "SigninManager", SigninManagerAndroid::Register }, | 154 { "SigninManager", SigninManagerAndroid::Register }, |
| 154 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor }, | 155 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor }, |
| 155 { "SSLClientCertificateRequest", RegisterSSLClientCertificateRequestAndroid }, | 156 { "SSLClientCertificateRequest", RegisterSSLClientCertificateRequestAndroid }, |
| 156 { "StartupMetricUtils", RegisterStartupMetricUtils }, | 157 { "StartupMetricUtils", RegisterStartupMetricUtils }, |
| 157 { "TabAndroid", TabAndroid::RegisterTabAndroid }, | 158 { "TabAndroid", TabAndroid::RegisterTabAndroid }, |
| 159 { "TabModelBase", RegisterTabModelBase}, |
| 158 { "TemplateUrlServiceAndroid", TemplateUrlServiceAndroid::Register }, | 160 { "TemplateUrlServiceAndroid", TemplateUrlServiceAndroid::Register }, |
| 159 { "ToolbarModelAndroid", ToolbarModelAndroid::RegisterToolbarModelAndroid }, | 161 { "ToolbarModelAndroid", ToolbarModelAndroid::RegisterToolbarModelAndroid }, |
| 160 { "TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate }, | 162 { "TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate }, |
| 161 { "TtsPlatformImpl", TtsPlatformImplAndroid::Register }, | 163 { "TtsPlatformImpl", TtsPlatformImplAndroid::Register }, |
| 162 { "UmaBridge", RegisterUmaBridge }, | 164 { "UmaBridge", RegisterUmaBridge }, |
| 163 { "UrlUtilities", RegisterUrlUtilities }, | 165 { "UrlUtilities", RegisterUrlUtilities }, |
| 164 { "VoiceSearchTabHelper", RegisterVoiceSearchTabHelper }, | 166 { "VoiceSearchTabHelper", RegisterVoiceSearchTabHelper }, |
| 165 { "WebsiteSettingsPopupAndroid", | 167 { "WebsiteSettingsPopupAndroid", |
| 166 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid }, | 168 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid }, |
| 167 #if defined(ENABLE_PRINTING) && !defined(ENABLE_FULL_PRINTING) | 169 #if defined(ENABLE_PRINTING) && !defined(ENABLE_FULL_PRINTING) |
| 168 { "PrintingContext", | 170 { "PrintingContext", |
| 169 printing::PrintingContextAndroid::RegisterPrintingContext}, | 171 printing::PrintingContextAndroid::RegisterPrintingContext}, |
| 170 #endif | 172 #endif |
| 171 }; | 173 }; |
| 172 | 174 |
| 173 bool RegisterJni(JNIEnv* env) { | 175 bool RegisterJni(JNIEnv* env) { |
| 174 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 176 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
| 175 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 177 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
| 176 arraysize(kChromeRegisteredMethods)); | 178 arraysize(kChromeRegisteredMethods)); |
| 177 } | 179 } |
| 178 | 180 |
| 179 } // namespace android | 181 } // namespace android |
| 180 } // namespace chrome | 182 } // namespace chrome |
| OLD | NEW |