| 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" |
| 11 #include "blimp/client/public/android/blimp_jni_registrar.h" | 11 #include "blimp/client/public/android/blimp_jni_registrar.h" |
| 12 #include "chrome/browser/after_startup_task_utils_android.h" | 12 #include "chrome/browser/after_startup_task_utils_android.h" |
| 13 #include "chrome/browser/android/accessibility/font_size_prefs_android.h" | 13 #include "chrome/browser/android/accessibility/font_size_prefs_android.h" |
| 14 #include "chrome/browser/android/appmenu/app_menu_drag_helper.h" | 14 #include "chrome/browser/android/appmenu/app_menu_drag_helper.h" |
| 15 #include "chrome/browser/android/banners/app_banner_infobar_delegate_android.h" | 15 #include "chrome/browser/android/banners/app_banner_infobar_delegate_android.h" |
| 16 #include "chrome/browser/android/banners/app_banner_manager_android.h" | 16 #include "chrome/browser/android/banners/app_banner_manager_android.h" |
| 17 #include "chrome/browser/android/blimp/blimp_client_context_factory_android.h" | 17 #include "chrome/browser/android/blimp/blimp_client_context_factory_android.h" |
| 18 #include "chrome/browser/android/blimp/chrome_blimp_client_context_delegate_andr
oid.h" | 18 #include "chrome/browser/android/blimp/chrome_blimp_client_context_delegate_andr
oid.h" |
| 19 #include "chrome/browser/android/bookmarks/bookmark_bridge.h" | 19 #include "chrome/browser/android/bookmarks/bookmark_bridge.h" |
| 20 #include "chrome/browser/android/bookmarks/partner_bookmarks_reader.h" | 20 #include "chrome/browser/android/bookmarks/partner_bookmarks_reader.h" |
| 21 #include "chrome/browser/android/bottombar/overlay_panel_content.h" | 21 #include "chrome/browser/android/bottombar/overlay_panel_content.h" |
| 22 #include "chrome/browser/android/browsing_data/browsing_data_counter_bridge.h" | 22 #include "chrome/browser/android/browsing_data/browsing_data_counter_bridge.h" |
| 23 #include "chrome/browser/android/browsing_data/url_filter_bridge.h" | 23 #include "chrome/browser/android/browsing_data/url_filter_bridge.h" |
| 24 #include "chrome/browser/android/chrome_application.h" | 24 #include "chrome/browser/android/chrome_application.h" |
| 25 #include "chrome/browser/android/chrome_backup_agent.h" |
| 25 #include "chrome/browser/android/chrome_feature_list.h" | 26 #include "chrome/browser/android/chrome_feature_list.h" |
| 26 #include "chrome/browser/android/compositor/compositor_view.h" | 27 #include "chrome/browser/android/compositor/compositor_view.h" |
| 27 #include "chrome/browser/android/compositor/layer_title_cache.h" | 28 #include "chrome/browser/android/compositor/layer_title_cache.h" |
| 28 #include "chrome/browser/android/compositor/scene_layer/contextual_search_scene_
layer.h" | 29 #include "chrome/browser/android/compositor/scene_layer/contextual_search_scene_
layer.h" |
| 29 #include "chrome/browser/android/compositor/scene_layer/reader_mode_scene_layer.
h" | 30 #include "chrome/browser/android/compositor/scene_layer/reader_mode_scene_layer.
h" |
| 30 #include "chrome/browser/android/compositor/scene_layer/scene_layer.h" | 31 #include "chrome/browser/android/compositor/scene_layer/scene_layer.h" |
| 31 #include "chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.h
" | 32 #include "chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.h
" |
| 32 #include "chrome/browser/android/compositor/scene_layer/tab_list_scene_layer.h" | 33 #include "chrome/browser/android/compositor/scene_layer/tab_list_scene_layer.h" |
| 33 #include "chrome/browser/android/compositor/scene_layer/tab_strip_scene_layer.h" | 34 #include "chrome/browser/android/compositor/scene_layer/tab_strip_scene_layer.h" |
| 34 #include "chrome/browser/android/compositor/scene_layer/toolbar_scene_layer.h" | 35 #include "chrome/browser/android/compositor/scene_layer/toolbar_scene_layer.h" |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 offline_pages::android::RegisterBackgroundSchedulerBridge}, | 223 offline_pages::android::RegisterBackgroundSchedulerBridge}, |
| 223 {"BlimpClientContextFactory", RegisterBlimpClientContextFactoryJni}, | 224 {"BlimpClientContextFactory", RegisterBlimpClientContextFactoryJni}, |
| 224 {"Blimp", blimp::client::RegisterBlimpJni}, | 225 {"Blimp", blimp::client::RegisterBlimpJni}, |
| 225 {"BluetoothChooserAndroid", BluetoothChooserAndroid::Register}, | 226 {"BluetoothChooserAndroid", BluetoothChooserAndroid::Register}, |
| 226 {"BookmarkBridge", BookmarkBridge::RegisterBookmarkBridge}, | 227 {"BookmarkBridge", BookmarkBridge::RegisterBookmarkBridge}, |
| 227 {"BrowsingDataCounterBridge", BrowsingDataCounterBridge::Register}, | 228 {"BrowsingDataCounterBridge", BrowsingDataCounterBridge::Register}, |
| 228 {"CardUnmaskPrompt", autofill::CardUnmaskPromptViewAndroid::Register}, | 229 {"CardUnmaskPrompt", autofill::CardUnmaskPromptViewAndroid::Register}, |
| 229 {"CertificateViewer", RegisterCertificateViewer}, | 230 {"CertificateViewer", RegisterCertificateViewer}, |
| 230 {"ChildAccountService", RegisterChildAccountService}, | 231 {"ChildAccountService", RegisterChildAccountService}, |
| 231 {"ChromeApplication", chrome::android::ChromeApplication::RegisterBindings}, | 232 {"ChromeApplication", chrome::android::ChromeApplication::RegisterBindings}, |
| 233 {"ChromeBackupAgent", chrome::android::RegisterBackupAgent}, |
| 232 {"ChromeBlimpClientContextDelegate", | 234 {"ChromeBlimpClientContextDelegate", |
| 233 ChromeBlimpClientContextDelegateAndroid::RegisterJni}, | 235 ChromeBlimpClientContextDelegateAndroid::RegisterJni}, |
| 234 {"ChromeBrowserProvider", | 236 {"ChromeBrowserProvider", |
| 235 ChromeBrowserProvider::RegisterChromeBrowserProvider}, | 237 ChromeBrowserProvider::RegisterChromeBrowserProvider}, |
| 236 {"ChromeFeatureList", chrome::android::RegisterChromeFeatureListJni}, | 238 {"ChromeFeatureList", chrome::android::RegisterChromeFeatureListJni}, |
| 237 {"ChromeHttpAuthHandler", | 239 {"ChromeHttpAuthHandler", |
| 238 ChromeHttpAuthHandler::RegisterChromeHttpAuthHandler}, | 240 ChromeHttpAuthHandler::RegisterChromeHttpAuthHandler}, |
| 239 #if defined(ENABLE_MEDIA_ROUTER) | 241 #if defined(ENABLE_MEDIA_ROUTER) |
| 240 {"ChromeMediaRouter", media_router::MediaRouterAndroid::Register}, | 242 {"ChromeMediaRouter", media_router::MediaRouterAndroid::Register}, |
| 241 {"ChromeMediaRouterDialogController", | 243 {"ChromeMediaRouterDialogController", |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 #endif | 400 #endif |
| 399 }; | 401 }; |
| 400 | 402 |
| 401 bool RegisterBrowserJNI(JNIEnv* env) { | 403 bool RegisterBrowserJNI(JNIEnv* env) { |
| 402 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 404 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
| 403 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 405 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
| 404 arraysize(kChromeRegisteredMethods)); | 406 arraysize(kChromeRegisteredMethods)); |
| 405 } | 407 } |
| 406 | 408 |
| 407 } // namespace android | 409 } // namespace android |
| OLD | NEW |