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/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
10 #include "chrome/browser/android/accessibility/font_size_prefs_android.h" | 10 #include "chrome/browser/android/accessibility/font_size_prefs_android.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 #include "chrome/browser/sync/profile_sync_service_android.h" | 73 #include "chrome/browser/sync/profile_sync_service_android.h" |
74 #include "chrome/browser/ui/android/autofill/autofill_dialog_controller_android.
h" | 74 #include "chrome/browser/ui/android/autofill/autofill_dialog_controller_android.
h" |
75 #include "chrome/browser/ui/android/autofill/autofill_dialog_result.h" | 75 #include "chrome/browser/ui/android/autofill/autofill_dialog_result.h" |
76 #include "chrome/browser/ui/android/autofill/autofill_logger_android.h" | 76 #include "chrome/browser/ui/android/autofill/autofill_logger_android.h" |
77 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h" | 77 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h" |
78 #include "chrome/browser/ui/android/autofill/card_unmask_prompt_view_android.h" | 78 #include "chrome/browser/ui/android/autofill/card_unmask_prompt_view_android.h" |
79 #include "chrome/browser/ui/android/autofill/credit_card_scanner_view_android.h" | 79 #include "chrome/browser/ui/android/autofill/credit_card_scanner_view_android.h" |
80 #include "chrome/browser/ui/android/autofill/password_generation_popup_view_andr
oid.h" | 80 #include "chrome/browser/ui/android/autofill/password_generation_popup_view_andr
oid.h" |
81 #include "chrome/browser/ui/android/chrome_http_auth_handler.h" | 81 #include "chrome/browser/ui/android/chrome_http_auth_handler.h" |
82 #include "chrome/browser/ui/android/context_menu_helper.h" | 82 #include "chrome/browser/ui/android/context_menu_helper.h" |
| 83 #include "chrome/browser/ui/android/infobars/app_banner_infobar.h" |
83 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" | 84 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" |
84 #include "chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.h" | 85 #include "chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.h" |
85 #include "chrome/browser/ui/android/infobars/generated_password_saved_infobar.h" | 86 #include "chrome/browser/ui/android/infobars/generated_password_saved_infobar.h" |
86 #include "chrome/browser/ui/android/infobars/infobar_android.h" | 87 #include "chrome/browser/ui/android/infobars/infobar_android.h" |
87 #include "chrome/browser/ui/android/infobars/infobar_container_android.h" | 88 #include "chrome/browser/ui/android/infobars/infobar_container_android.h" |
88 #include "chrome/browser/ui/android/infobars/translate_infobar.h" | 89 #include "chrome/browser/ui/android/infobars/translate_infobar.h" |
89 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" | 90 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" |
90 #include "chrome/browser/ui/android/navigation_popup.h" | 91 #include "chrome/browser/ui/android/navigation_popup.h" |
91 #include "chrome/browser/ui/android/omnibox/omnibox_url_emphasizer.h" | 92 #include "chrome/browser/ui/android/omnibox/omnibox_url_emphasizer.h" |
92 #include "chrome/browser/ui/android/omnibox/omnibox_view_util.h" | 93 #include "chrome/browser/ui/android/omnibox/omnibox_view_util.h" |
(...skipping 27 matching lines...) Expand all Loading... |
120 {"NavigationInterception", | 121 {"NavigationInterception", |
121 navigation_interception::RegisterNavigationInterceptionJni}, | 122 navigation_interception::RegisterNavigationInterceptionJni}, |
122 {"WebContentsDelegateAndroid", | 123 {"WebContentsDelegateAndroid", |
123 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni}, | 124 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni}, |
124 // Register JNI for chrome classes. | 125 // Register JNI for chrome classes. |
125 {"AccessibilityUtils", AccessibilityUtil::Register}, | 126 {"AccessibilityUtils", AccessibilityUtil::Register}, |
126 {"AccountManagementScreenHelper", AccountManagementScreenHelper::Register}, | 127 {"AccountManagementScreenHelper", AccountManagementScreenHelper::Register}, |
127 {"AndroidProfileOAuth2TokenService", | 128 {"AndroidProfileOAuth2TokenService", |
128 AndroidProfileOAuth2TokenService::Register}, | 129 AndroidProfileOAuth2TokenService::Register}, |
129 {"AnswersImageBridge", RegisterAnswersImageBridge}, | 130 {"AnswersImageBridge", RegisterAnswersImageBridge}, |
130 {"AppBannerInfoBarDelegate", RegisterAppBannerInfoBarDelegate}, | 131 {"AppBannerInfoBar", RegisterAppBannerInfoBar}, |
| 132 {"AppBannerInfoBarDelegate", banners::RegisterAppBannerInfoBarDelegate}, |
131 {"AppBannerManager", banners::RegisterAppBannerManager}, | 133 {"AppBannerManager", banners::RegisterAppBannerManager}, |
132 {"ApplicationLifetime", RegisterApplicationLifetimeAndroid}, | 134 {"ApplicationLifetime", RegisterApplicationLifetimeAndroid}, |
133 {"AutocompleteControllerAndroid", RegisterAutocompleteControllerAndroid}, | 135 {"AutocompleteControllerAndroid", RegisterAutocompleteControllerAndroid}, |
134 {"AutofillDialogControllerAndroid", | 136 {"AutofillDialogControllerAndroid", |
135 autofill::AutofillDialogControllerAndroid:: | 137 autofill::AutofillDialogControllerAndroid:: |
136 RegisterAutofillDialogControllerAndroid}, | 138 RegisterAutofillDialogControllerAndroid}, |
137 {"AutofillDialogResult", | 139 {"AutofillDialogResult", |
138 autofill::AutofillDialogResult::RegisterAutofillDialogResult}, | 140 autofill::AutofillDialogResult::RegisterAutofillDialogResult}, |
139 {"AutofillLoggerAndroid", autofill::AutofillLoggerAndroid::Register}, | 141 {"AutofillLoggerAndroid", autofill::AutofillLoggerAndroid::Register}, |
140 {"AutofillPopup", | 142 {"AutofillPopup", |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 }; | 240 }; |
239 | 241 |
240 bool RegisterJni(JNIEnv* env) { | 242 bool RegisterJni(JNIEnv* env) { |
241 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 243 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
242 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 244 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
243 arraysize(kChromeRegisteredMethods)); | 245 arraysize(kChromeRegisteredMethods)); |
244 } | 246 } |
245 | 247 |
246 } // namespace android | 248 } // namespace android |
247 } // namespace chrome | 249 } // namespace chrome |
OLD | NEW |