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" |
11 #include "chrome/browser/android/banners/app_banner_manager.h" | 11 #include "chrome/browser/android/banners/app_banner_manager.h" |
12 #include "chrome/browser/android/bookmarks/bookmarks_bridge.h" | 12 #include "chrome/browser/android/bookmarks/bookmarks_bridge.h" |
13 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" | 13 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" |
14 #include "chrome/browser/android/chromium_application.h" | 14 #include "chrome/browser/android/chromium_application.h" |
15 #include "chrome/browser/android/content_view_util.h" | 15 #include "chrome/browser/android/content_view_util.h" |
16 #include "chrome/browser/android/dev_tools_server.h" | 16 #include "chrome/browser/android/dev_tools_server.h" |
17 #include "chrome/browser/android/dom_distiller/feedback_reporter_android.h" | 17 #include "chrome/browser/android/dom_distiller/feedback_reporter_android.h" |
18 #include "chrome/browser/android/favicon_helper.h" | 18 #include "chrome/browser/android/favicon_helper.h" |
19 #include "chrome/browser/android/field_trial_helper.h" | 19 #include "chrome/browser/android/field_trial_helper.h" |
20 #include "chrome/browser/android/foreign_session_helper.h" | 20 #include "chrome/browser/android/foreign_session_helper.h" |
21 #include "chrome/browser/android/intent_helper.h" | 21 #include "chrome/browser/android/intent_helper.h" |
22 #include "chrome/browser/android/logo_bridge.h" | 22 #include "chrome/browser/android/logo_bridge.h" |
23 #include "chrome/browser/android/most_visited_sites.h" | 23 #include "chrome/browser/android/most_visited_sites.h" |
24 #include "chrome/browser/android/new_tab_page_prefs.h" | 24 #include "chrome/browser/android/new_tab_page_prefs.h" |
| 25 #include "chrome/browser/android/omnibox/autocomplete_controller_android.h" |
25 #include "chrome/browser/android/omnibox/omnibox_prerender.h" | 26 #include "chrome/browser/android/omnibox/omnibox_prerender.h" |
26 #include "chrome/browser/android/password_authentication_manager.h" | 27 #include "chrome/browser/android/password_authentication_manager.h" |
27 #include "chrome/browser/android/password_ui_view_android.h" | 28 #include "chrome/browser/android/password_ui_view_android.h" |
28 #include "chrome/browser/android/profiles/profile_downloader_android.h" | 29 #include "chrome/browser/android/profiles/profile_downloader_android.h" |
29 #include "chrome/browser/android/provider/chrome_browser_provider.h" | 30 #include "chrome/browser/android/provider/chrome_browser_provider.h" |
30 #include "chrome/browser/android/recently_closed_tabs_bridge.h" | 31 #include "chrome/browser/android/recently_closed_tabs_bridge.h" |
31 #include "chrome/browser/android/shortcut_helper.h" | 32 #include "chrome/browser/android/shortcut_helper.h" |
32 #include "chrome/browser/android/signin/account_management_screen_helper.h" | 33 #include "chrome/browser/android/signin/account_management_screen_helper.h" |
33 #include "chrome/browser/android/signin/signin_manager_android.h" | 34 #include "chrome/browser/android/signin/signin_manager_android.h" |
34 #include "chrome/browser/android/tab_android.h" | 35 #include "chrome/browser/android/tab_android.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 { "WebContentsDelegateAndroid", | 87 { "WebContentsDelegateAndroid", |
87 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni }, | 88 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni }, |
88 { "RegisterAuxiliaryProfileLoader", autofill::RegisterAutofillAndroidJni }, | 89 { "RegisterAuxiliaryProfileLoader", autofill::RegisterAutofillAndroidJni }, |
89 // Register JNI for chrome classes. | 90 // Register JNI for chrome classes. |
90 { "AccessibilityUtils", AccessibilityUtil::Register }, | 91 { "AccessibilityUtils", AccessibilityUtil::Register }, |
91 { "AccountManagementScreenHelper", AccountManagementScreenHelper::Register }, | 92 { "AccountManagementScreenHelper", AccountManagementScreenHelper::Register }, |
92 { "AndroidProfileOAuth2TokenService", | 93 { "AndroidProfileOAuth2TokenService", |
93 AndroidProfileOAuth2TokenService::Register }, | 94 AndroidProfileOAuth2TokenService::Register }, |
94 { "AppBannerManager", banners::RegisterAppBannerManager }, | 95 { "AppBannerManager", banners::RegisterAppBannerManager }, |
95 { "ApplicationLifetime", RegisterApplicationLifetimeAndroid }, | 96 { "ApplicationLifetime", RegisterApplicationLifetimeAndroid }, |
| 97 { "AutocompleteControllerAndroid", RegisterAutocompleteControllerAndroid }, |
96 { "AutofillDialogControllerAndroid", | 98 { "AutofillDialogControllerAndroid", |
97 autofill::AutofillDialogControllerAndroid:: | 99 autofill::AutofillDialogControllerAndroid:: |
98 RegisterAutofillDialogControllerAndroid }, | 100 RegisterAutofillDialogControllerAndroid }, |
99 { "AutofillDialogResult", | 101 { "AutofillDialogResult", |
100 autofill::AutofillDialogResult::RegisterAutofillDialogResult }, | 102 autofill::AutofillDialogResult::RegisterAutofillDialogResult }, |
101 { "AutofillLoggerAndroid", | 103 { "AutofillLoggerAndroid", |
102 autofill::AutofillLoggerAndroid::Register }, | 104 autofill::AutofillLoggerAndroid::Register }, |
103 { "AutofillPopup", | 105 { "AutofillPopup", |
104 autofill::AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid }, | 106 autofill::AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid }, |
105 { "AutoLoginDelegate", AutoLoginInfoBarDelegateAndroid::Register }, | 107 { "AutoLoginDelegate", AutoLoginInfoBarDelegateAndroid::Register }, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |