| 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_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void OnPause(JNIEnv* env, | 74 void OnPause(JNIEnv* env, |
| 75 const base::android::JavaParamRef<jobject>& obj); | 75 const base::android::JavaParamRef<jobject>& obj); |
| 76 void OnResume(JNIEnv* env, | 76 void OnResume(JNIEnv* env, |
| 77 const base::android::JavaParamRef<jobject>& obj); | 77 const base::android::JavaParamRef<jobject>& obj); |
| 78 void SetSurface(JNIEnv* env, | 78 void SetSurface(JNIEnv* env, |
| 79 const base::android::JavaParamRef<jobject>& obj, | 79 const base::android::JavaParamRef<jobject>& obj, |
| 80 const base::android::JavaParamRef<jobject>& surface); | 80 const base::android::JavaParamRef<jobject>& surface); |
| 81 void SetWebVrMode(JNIEnv* env, | 81 void SetWebVrMode(JNIEnv* env, |
| 82 const base::android::JavaParamRef<jobject>& obj, | 82 const base::android::JavaParamRef<jobject>& obj, |
| 83 bool enabled); | 83 bool enabled); |
| 84 void OnLoadProgressChanged(JNIEnv* env, |
| 85 const base::android::JavaParamRef<jobject>& obj, |
| 86 double progress); |
| 84 | 87 |
| 85 void ContentWebContentsDestroyed(); | 88 void ContentWebContentsDestroyed(); |
| 86 // Called when our WebContents have been hidden. Usually a sign that something | 89 // Called when our WebContents have been hidden. Usually a sign that something |
| 87 // like another tab placed in front of it. | 90 // like another tab placed in front of it. |
| 88 void ContentWasHidden(); | 91 void ContentWasHidden(); |
| 89 | 92 |
| 90 // html/js UI hooks. | 93 // html/js UI hooks. |
| 91 static base::WeakPtr<VrShell> GetWeakPtr( | 94 static base::WeakPtr<VrShell> GetWeakPtr( |
| 92 const content::WebContents* web_contents); | 95 const content::WebContents* web_contents); |
| 93 | 96 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 base::WeakPtrFactory<VrShell> weak_ptr_factory_; | 170 base::WeakPtrFactory<VrShell> weak_ptr_factory_; |
| 168 | 171 |
| 169 DISALLOW_COPY_AND_ASSIGN(VrShell); | 172 DISALLOW_COPY_AND_ASSIGN(VrShell); |
| 170 }; | 173 }; |
| 171 | 174 |
| 172 bool RegisterVrShell(JNIEnv* env); | 175 bool RegisterVrShell(JNIEnv* env); |
| 173 | 176 |
| 174 } // namespace vr_shell | 177 } // namespace vr_shell |
| 175 | 178 |
| 176 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 179 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| OLD | NEW |