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/answers_image_bridge.h" | |
25 #include "chrome/browser/android/omnibox/autocomplete_controller_android.h" | 26 #include "chrome/browser/android/omnibox/autocomplete_controller_android.h" |
26 #include "chrome/browser/android/omnibox/omnibox_prerender.h" | 27 #include "chrome/browser/android/omnibox/omnibox_prerender.h" |
27 #include "chrome/browser/android/password_authentication_manager.h" | 28 #include "chrome/browser/android/password_authentication_manager.h" |
28 #include "chrome/browser/android/password_ui_view_android.h" | 29 #include "chrome/browser/android/password_ui_view_android.h" |
29 #include "chrome/browser/android/profiles/profile_downloader_android.h" | 30 #include "chrome/browser/android/profiles/profile_downloader_android.h" |
30 #include "chrome/browser/android/provider/chrome_browser_provider.h" | 31 #include "chrome/browser/android/provider/chrome_browser_provider.h" |
31 #include "chrome/browser/android/recently_closed_tabs_bridge.h" | 32 #include "chrome/browser/android/recently_closed_tabs_bridge.h" |
32 #include "chrome/browser/android/shortcut_helper.h" | 33 #include "chrome/browser/android/shortcut_helper.h" |
33 #include "chrome/browser/android/signin/account_management_screen_helper.h" | 34 #include "chrome/browser/android/signin/account_management_screen_helper.h" |
34 #include "chrome/browser/android/signin/signin_manager_android.h" | 35 #include "chrome/browser/android/signin/signin_manager_android.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
92 { "WebContentsDelegateAndroid", | 93 { "WebContentsDelegateAndroid", |
93 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni }, | 94 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni }, |
94 { "RegisterAuxiliaryProfileLoader", autofill::RegisterAutofillAndroidJni }, | 95 { "RegisterAuxiliaryProfileLoader", autofill::RegisterAutofillAndroidJni }, |
95 // Register JNI for chrome classes. | 96 // Register JNI for chrome classes. |
96 { "AccessibilityUtils", AccessibilityUtil::Register }, | 97 { "AccessibilityUtils", AccessibilityUtil::Register }, |
97 { "AccountManagementScreenHelper", AccountManagementScreenHelper::Register }, | 98 { "AccountManagementScreenHelper", AccountManagementScreenHelper::Register }, |
98 { "AndroidProfileOAuth2TokenService", | 99 { "AndroidProfileOAuth2TokenService", |
99 AndroidProfileOAuth2TokenService::Register }, | 100 AndroidProfileOAuth2TokenService::Register }, |
100 { "AppBannerManager", banners::RegisterAppBannerManager }, | 101 { "AppBannerManager", banners::RegisterAppBannerManager }, |
101 { "ApplicationLifetime", RegisterApplicationLifetimeAndroid }, | 102 { "ApplicationLifetime", RegisterApplicationLifetimeAndroid }, |
103 { "AnswersImageBridge", RegisterAnswersImageBridge }, | |
Ted C
2014/06/17 20:38:15
order alphabetically
groby-ooo-7-16
2014/06/17 23:46:20
Done.
| |
102 { "AutocompleteControllerAndroid", RegisterAutocompleteControllerAndroid }, | 104 { "AutocompleteControllerAndroid", RegisterAutocompleteControllerAndroid }, |
103 { "AutofillDialogControllerAndroid", | 105 { "AutofillDialogControllerAndroid", |
104 autofill::AutofillDialogControllerAndroid:: | 106 autofill::AutofillDialogControllerAndroid:: |
105 RegisterAutofillDialogControllerAndroid }, | 107 RegisterAutofillDialogControllerAndroid }, |
106 { "AutofillDialogResult", | 108 { "AutofillDialogResult", |
107 autofill::AutofillDialogResult::RegisterAutofillDialogResult }, | 109 autofill::AutofillDialogResult::RegisterAutofillDialogResult }, |
108 { "AutofillLoggerAndroid", | 110 { "AutofillLoggerAndroid", |
109 autofill::AutofillLoggerAndroid::Register }, | 111 autofill::AutofillLoggerAndroid::Register }, |
110 { "AutofillPopup", | 112 { "AutofillPopup", |
111 autofill::AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid }, | 113 autofill::AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid }, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
169 { "ToolbarModelAndroid", ToolbarModelAndroid::RegisterToolbarModelAndroid }, | 171 { "ToolbarModelAndroid", ToolbarModelAndroid::RegisterToolbarModelAndroid }, |
170 { "TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate }, | 172 { "TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate }, |
171 { "TtsPlatformImpl", TtsPlatformImplAndroid::Register }, | 173 { "TtsPlatformImpl", TtsPlatformImplAndroid::Register }, |
172 { "UmaBridge", RegisterUmaBridge }, | 174 { "UmaBridge", RegisterUmaBridge }, |
173 { "UrlUtilities", RegisterUrlUtilities }, | 175 { "UrlUtilities", RegisterUrlUtilities }, |
174 { "VoiceSearchTabHelper", RegisterVoiceSearchTabHelper }, | 176 { "VoiceSearchTabHelper", RegisterVoiceSearchTabHelper }, |
175 { "WebsiteSettingsPopupAndroid", | 177 { "WebsiteSettingsPopupAndroid", |
176 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid }, | 178 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid }, |
177 #if defined(ENABLE_PRINTING) && !defined(ENABLE_FULL_PRINTING) | 179 #if defined(ENABLE_PRINTING) && !defined(ENABLE_FULL_PRINTING) |
178 { "PrintingContext", | 180 { "PrintingContext", |
179 printing::PrintingContextAndroid::RegisterPrintingContext}, | 181 printing::PrintingContextAndroid::RegisterPrintingContext}, |
180 #endif | 182 #endif |
181 }; | 183 }; |
182 | 184 |
183 bool RegisterJni(JNIEnv* env) { | 185 bool RegisterJni(JNIEnv* env) { |
184 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 186 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
185 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 187 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
186 arraysize(kChromeRegisteredMethods)); | 188 arraysize(kChromeRegisteredMethods)); |
187 } | 189 } |
188 | 190 |
189 } // namespace android | 191 } // namespace android |
190 } // namespace chrome | 192 } // namespace chrome |
OLD | NEW |