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

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

Issue 2745943002: Remove enable_webvr from build/config, and move it to the buildflag_header system. (Closed)
Patch Set: rebase Created 3 years, 9 months 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/policy/core/browser/android/component_jni_registrar.h" 175 #include "components/policy/core/browser/android/component_jni_registrar.h"
176 #include "components/safe_browsing_db/android/jni_registrar.h" 176 #include "components/safe_browsing_db/android/jni_registrar.h"
177 #include "components/safe_json/android/component_jni_registrar.h" 177 #include "components/safe_json/android/component_jni_registrar.h"
178 #include "components/signin/core/browser/android/component_jni_registrar.h" 178 #include "components/signin/core/browser/android/component_jni_registrar.h"
179 #include "components/spellcheck/browser/android/component_jni_registrar.h" 179 #include "components/spellcheck/browser/android/component_jni_registrar.h"
180 #include "components/spellcheck/spellcheck_build_features.h" 180 #include "components/spellcheck/spellcheck_build_features.h"
181 #include "components/sync/android/sync_jni_registrar.h" 181 #include "components/sync/android/sync_jni_registrar.h"
182 #include "components/url_formatter/android/component_jni_registrar.h" 182 #include "components/url_formatter/android/component_jni_registrar.h"
183 #include "components/variations/android/component_jni_registrar.h" 183 #include "components/variations/android/component_jni_registrar.h"
184 #include "components/web_contents_delegate_android/component_jni_registrar.h" 184 #include "components/web_contents_delegate_android/component_jni_registrar.h"
185 #include "device/vr/features.h"
185 #include "printing/features/features.h" 186 #include "printing/features/features.h"
186 187
187 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) 188 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW)
188 #include "printing/printing_context_android.h" 189 #include "printing/printing_context_android.h"
189 #endif 190 #endif
190 191
191 #if defined(ENABLE_WEBVR) 192 #if BUILDFLAG(ENABLE_WEBVR)
192 #include "chrome/browser/android/vr_shell/vr_shell.h" 193 #include "chrome/browser/android/vr_shell/vr_shell.h"
193 #include "chrome/browser/android/vr_shell/vr_shell_delegate.h" 194 #include "chrome/browser/android/vr_shell/vr_shell_delegate.h"
194 #include "third_party/gvr-android-sdk/display_synchronizer_jni.h" 195 #include "third_party/gvr-android-sdk/display_synchronizer_jni.h"
195 #include "third_party/gvr-android-sdk/gvr_api_jni.h" 196 #include "third_party/gvr-android-sdk/gvr_api_jni.h"
196 #include "third_party/gvr-android-sdk/native_callbacks_jni.h" 197 #include "third_party/gvr-android-sdk/native_callbacks_jni.h"
197 #endif 198 #endif
198 199
199 #if !defined(OFFICIAL_BUILD) 200 #if !defined(OFFICIAL_BUILD)
200 #include "chrome/browser/android/offline_pages/evaluation/offline_page_evaluatio n_bridge.h" 201 #include "chrome/browser/android/offline_pages/evaluation/offline_page_evaluatio n_bridge.h"
201 #endif 202 #endif
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 {"ToolbarModelAndroid", ToolbarModelAndroid::RegisterToolbarModelAndroid}, 408 {"ToolbarModelAndroid", ToolbarModelAndroid::RegisterToolbarModelAndroid},
408 {"ToolbarSceneLayer", RegisterToolbarSceneLayer}, 409 {"ToolbarSceneLayer", RegisterToolbarSceneLayer},
409 {"TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate}, 410 {"TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate},
410 {"TtsPlatformImpl", TtsPlatformImplAndroid::Register}, 411 {"TtsPlatformImpl", TtsPlatformImplAndroid::Register},
411 {"UmaSessionStats", RegisterUmaSessionStats}, 412 {"UmaSessionStats", RegisterUmaSessionStats},
412 {"UrlFilterBridge", UrlFilterBridge::Register}, 413 {"UrlFilterBridge", UrlFilterBridge::Register},
413 {"UrlUtilities", RegisterUrlUtilities}, 414 {"UrlUtilities", RegisterUrlUtilities},
414 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register}, 415 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register},
415 {"Variations", variations::android::RegisterVariations}, 416 {"Variations", variations::android::RegisterVariations},
416 {"VariationsSession", chrome::android::RegisterVariationsSession}, 417 {"VariationsSession", chrome::android::RegisterVariationsSession},
417 #if defined(ENABLE_WEBVR) 418 #if BUILDFLAG(ENABLE_WEBVR)
418 {"VrShell", vr_shell::RegisterVrShell}, 419 {"VrShell", vr_shell::RegisterVrShell},
419 {"VrShellDelegate", vr_shell::RegisterVrShellDelegate}, 420 {"VrShellDelegate", vr_shell::RegisterVrShellDelegate},
420 {"DisplaySynchronizer", 421 {"DisplaySynchronizer",
421 DisplaySynchronizer::RegisterDisplaySynchronizerNatives}, 422 DisplaySynchronizer::RegisterDisplaySynchronizerNatives},
422 {"GvrApi", GvrApi::RegisterGvrApiNatives}, 423 {"GvrApi", GvrApi::RegisterGvrApiNatives},
423 {"NativeCallbacks", NativeCallbacks::RegisterNativeCallbacksNatives}, 424 {"NativeCallbacks", NativeCallbacks::RegisterNativeCallbacksNatives},
424 #endif 425 #endif
425 {"WarmupManager", RegisterWarmupManager}, 426 {"WarmupManager", RegisterWarmupManager},
426 {"WebApkInstaller", WebApkInstaller::Register}, 427 {"WebApkInstaller", WebApkInstaller::Register},
427 {"WebApkUpdateManager", WebApkUpdateManager::Register}, 428 {"WebApkUpdateManager", WebApkUpdateManager::Register},
428 {"WebApkUpdateDataFetcher", WebApkUpdateDataFetcher::Register}, 429 {"WebApkUpdateDataFetcher", WebApkUpdateDataFetcher::Register},
429 {"WebContentsFactory", RegisterWebContentsFactory}, 430 {"WebContentsFactory", RegisterWebContentsFactory},
430 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, 431 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge},
431 {"WebsiteSettingsPopupAndroid", 432 {"WebsiteSettingsPopupAndroid",
432 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, 433 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid},
433 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) 434 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW)
434 {"PrintingContext", 435 {"PrintingContext",
435 printing::PrintingContextAndroid::RegisterPrintingContext}, 436 printing::PrintingContextAndroid::RegisterPrintingContext},
436 #endif 437 #endif
437 }; 438 };
438 439
439 bool RegisterBrowserJNI(JNIEnv* env) { 440 bool RegisterBrowserJNI(JNIEnv* env) {
440 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 441 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
441 return RegisterNativeMethods(env, kChromeRegisteredMethods, 442 return RegisterNativeMethods(env, kChromeRegisteredMethods,
442 arraysize(kChromeRegisteredMethods)); 443 arraysize(kChromeRegisteredMethods));
443 } 444 }
444 445
445 } // namespace android 446 } // 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