Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: chrome/browser/android/chrome_jni_registrar.cc

Issue 2467873004: Linking arm and arm64 gvr static shim library (Closed)
Patch Set: Move DEPS to android Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/android/DEPS ('k') | chrome/browser/android/vr_shell/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 #include "components/web_contents_delegate_android/component_jni_registrar.h" 175 #include "components/web_contents_delegate_android/component_jni_registrar.h"
176 #include "printing/features/features.h" 176 #include "printing/features/features.h"
177 177
178 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) 178 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW)
179 #include "printing/printing_context_android.h" 179 #include "printing/printing_context_android.h"
180 #endif 180 #endif
181 181
182 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) 182 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR)
183 #include "chrome/browser/android/vr_shell/vr_shell.h" 183 #include "chrome/browser/android/vr_shell/vr_shell.h"
184 #include "chrome/browser/android/vr_shell/vr_shell_delegate.h" 184 #include "chrome/browser/android/vr_shell/vr_shell_delegate.h"
185 #include "third_party/gvr-android-sdk/display_synchronizer_jni.h"
186 #include "third_party/gvr-android-sdk/gvr_api_jni.h"
187 #include "third_party/gvr-android-sdk/native_callbacks_jni.h"
185 #endif 188 #endif
186 189
187 #if !defined(OFFICIAL_BUILD) 190 #if !defined(OFFICIAL_BUILD)
188 #include "chrome/browser/android/offline_pages/evaluation/offline_page_evaluatio n_bridge.h" 191 #include "chrome/browser/android/offline_pages/evaluation/offline_page_evaluatio n_bridge.h"
189 #endif 192 #endif
190 193
191 namespace android { 194 namespace android {
192 195
193 static base::android::RegistrationMethod kChromeRegisteredMethods[] = { 196 static base::android::RegistrationMethod kChromeRegisteredMethods[] = {
194 // Register JNI for components we depend on. 197 // Register JNI for components we depend on.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 {"TtsPlatformImpl", TtsPlatformImplAndroid::Register}, 395 {"TtsPlatformImpl", TtsPlatformImplAndroid::Register},
393 {"UmaSessionStats", RegisterUmaSessionStats}, 396 {"UmaSessionStats", RegisterUmaSessionStats},
394 {"UrlFilterBridge", UrlFilterBridge::Register}, 397 {"UrlFilterBridge", UrlFilterBridge::Register},
395 {"UrlUtilities", RegisterUrlUtilities}, 398 {"UrlUtilities", RegisterUrlUtilities},
396 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register}, 399 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register},
397 {"Variations", variations::android::RegisterVariations}, 400 {"Variations", variations::android::RegisterVariations},
398 {"VariationsSession", chrome::android::RegisterVariationsSession}, 401 {"VariationsSession", chrome::android::RegisterVariationsSession},
399 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) 402 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR)
400 {"VrShell", vr_shell::RegisterVrShell}, 403 {"VrShell", vr_shell::RegisterVrShell},
401 {"VrShellDelegate", vr_shell::RegisterVrShellDelegate}, 404 {"VrShellDelegate", vr_shell::RegisterVrShellDelegate},
405 {"DisplaySynchronizer",
406 DisplaySynchronizer::RegisterDisplaySynchronizerNatives},
407 {"GvrApi", GvrApi::RegisterGvrApiNatives},
408 {"NativeCallbacks",
409 NativeCallbacks::RegisterNativeCallbacksNatives},
402 #endif 410 #endif
403 {"WarmupManager", RegisterWarmupManager}, 411 {"WarmupManager", RegisterWarmupManager},
404 {"WebApkInstaller", WebApkInstaller::Register}, 412 {"WebApkInstaller", WebApkInstaller::Register},
405 {"WebApkUpdateManager", WebApkUpdateManager::Register}, 413 {"WebApkUpdateManager", WebApkUpdateManager::Register},
406 {"WebContentsFactory", RegisterWebContentsFactory}, 414 {"WebContentsFactory", RegisterWebContentsFactory},
407 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, 415 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge},
408 {"WebsiteSettingsPopupAndroid", 416 {"WebsiteSettingsPopupAndroid",
409 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, 417 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid},
410 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) 418 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW)
411 {"PrintingContext", 419 {"PrintingContext",
412 printing::PrintingContextAndroid::RegisterPrintingContext}, 420 printing::PrintingContextAndroid::RegisterPrintingContext},
413 #endif 421 #endif
414 }; 422 };
415 423
416 bool RegisterBrowserJNI(JNIEnv* env) { 424 bool RegisterBrowserJNI(JNIEnv* env) {
417 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 425 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
418 return RegisterNativeMethods(env, kChromeRegisteredMethods, 426 return RegisterNativeMethods(env, kChromeRegisteredMethods,
419 arraysize(kChromeRegisteredMethods)); 427 arraysize(kChromeRegisteredMethods));
420 } 428 }
421 429
422 } // namespace android 430 } // namespace android
OLDNEW
« no previous file with comments | « chrome/browser/android/DEPS ('k') | chrome/browser/android/vr_shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698