webxr_utils.h 845 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_WEBXR_ANDROID_WEBXR_UTILS_H_
  5. #define COMPONENTS_WEBXR_ANDROID_WEBXR_UTILS_H_
  6. #include "base/android/jni_android.h"
  7. namespace content {
  8. class WebContents;
  9. }
  10. // Functions in this file are currently GVR/ArCore specific functions. If other
  11. // platforms need the same function here, please move it to
  12. // components/webxr/*util.cc|h
  13. namespace webxr {
  14. content::WebContents* GetWebContents(int render_process_id,
  15. int render_frame_id);
  16. base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents(
  17. int render_process_id,
  18. int render_frame_id);
  19. } // namespace webxr
  20. #endif // COMPONENTS_WEBXR_ANDROID_WEBXR_UTILS_H_