| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_DELEGATE_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 const base::android::JavaParamRef<jobject>& obj, | 43 const base::android::JavaParamRef<jobject>& obj, |
| 44 jboolean success); | 44 jboolean success); |
| 45 void DisplayActivate(JNIEnv* env, | 45 void DisplayActivate(JNIEnv* env, |
| 46 const base::android::JavaParamRef<jobject>& obj); | 46 const base::android::JavaParamRef<jobject>& obj); |
| 47 void UpdateVSyncInterval(JNIEnv* env, | 47 void UpdateVSyncInterval(JNIEnv* env, |
| 48 const base::android::JavaParamRef<jobject>& obj, | 48 const base::android::JavaParamRef<jobject>& obj, |
| 49 jlong timebase_nanos, | 49 jlong timebase_nanos, |
| 50 jdouble interval_seconds); | 50 jdouble interval_seconds); |
| 51 void OnPause(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); | 51 void OnPause(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); |
| 52 void OnResume(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); | 52 void OnResume(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); |
| 53 void UpdateNonPresentingContext( |
| 54 JNIEnv* env, |
| 55 const base::android::JavaParamRef<jobject>& obj, |
| 56 jlong context); |
| 53 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); | 57 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); |
| 54 | 58 |
| 55 device::GvrDeviceProvider* device_provider() { return device_provider_; } | 59 device::GvrDeviceProvider* device_provider() { return device_provider_; } |
| 56 | 60 |
| 57 // device::GvrDelegateProvider implementation. | 61 // device::GvrDelegateProvider implementation. |
| 58 void ExitWebVRPresent() override; | 62 void ExitWebVRPresent() override; |
| 59 | 63 |
| 60 private: | 64 private: |
| 61 // device::GvrDelegateProvider implementation. | 65 // device::GvrDelegateProvider implementation. |
| 62 void SetDeviceProvider(device::GvrDeviceProvider* device_provider) override; | 66 void SetDeviceProvider(device::GvrDeviceProvider* device_provider) override; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 83 base::WeakPtrFactory<VrShellDelegate> weak_ptr_factory_; | 87 base::WeakPtrFactory<VrShellDelegate> weak_ptr_factory_; |
| 84 | 88 |
| 85 DISALLOW_COPY_AND_ASSIGN(VrShellDelegate); | 89 DISALLOW_COPY_AND_ASSIGN(VrShellDelegate); |
| 86 }; | 90 }; |
| 87 | 91 |
| 88 bool RegisterVrShellDelegate(JNIEnv* env); | 92 bool RegisterVrShellDelegate(JNIEnv* env); |
| 89 | 93 |
| 90 } // namespace vr_shell | 94 } // namespace vr_shell |
| 91 | 95 |
| 92 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_DELEGATE_H_ | 96 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_DELEGATE_H_ |
| OLD | NEW |