| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 jstring jtitle); | 109 jstring jtitle); |
| 110 void OnTabRemoved(JNIEnv* env, | 110 void OnTabRemoved(JNIEnv* env, |
| 111 const base::android::JavaParamRef<jobject>& obj, | 111 const base::android::JavaParamRef<jobject>& obj, |
| 112 jboolean incognito, | 112 jboolean incognito, |
| 113 jint id); | 113 jint id); |
| 114 base::android::ScopedJavaGlobalRef<jobject> TakeContentSurface( | 114 base::android::ScopedJavaGlobalRef<jobject> TakeContentSurface( |
| 115 JNIEnv* env, | 115 JNIEnv* env, |
| 116 const base::android::JavaParamRef<jobject>& obj); | 116 const base::android::JavaParamRef<jobject>& obj); |
| 117 void RestoreContentSurface(JNIEnv* env, | 117 void RestoreContentSurface(JNIEnv* env, |
| 118 const base::android::JavaParamRef<jobject>& obj); | 118 const base::android::JavaParamRef<jobject>& obj); |
| 119 void SetHistoryButtonsEnabled(JNIEnv* env, |
| 120 const base::android::JavaParamRef<jobject>& obj, |
| 121 jboolean can_go_back, |
| 122 jboolean can_go_forward); |
| 119 | 123 |
| 120 void ContentWebContentsDestroyed(); | 124 void ContentWebContentsDestroyed(); |
| 121 // Called when our WebContents have been hidden. Usually a sign that something | 125 // Called when our WebContents have been hidden. Usually a sign that something |
| 122 // like another tab placed in front of it. | 126 // like another tab placed in front of it. |
| 123 void ContentWasHidden(); | 127 void ContentWasHidden(); |
| 124 void ContentWasShown(); | 128 void ContentWasShown(); |
| 125 | 129 |
| 126 // html/js UI hooks. | 130 // html/js UI hooks. |
| 127 static base::WeakPtr<VrShell> GetWeakPtr( | 131 static base::WeakPtr<VrShell> GetWeakPtr( |
| 128 const content::WebContents* web_contents); | 132 const content::WebContents* web_contents); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 base::WeakPtrFactory<VrShell> weak_ptr_factory_; | 242 base::WeakPtrFactory<VrShell> weak_ptr_factory_; |
| 239 | 243 |
| 240 DISALLOW_COPY_AND_ASSIGN(VrShell); | 244 DISALLOW_COPY_AND_ASSIGN(VrShell); |
| 241 }; | 245 }; |
| 242 | 246 |
| 243 bool RegisterVrShell(JNIEnv* env); | 247 bool RegisterVrShell(JNIEnv* env); |
| 244 | 248 |
| 245 } // namespace vr_shell | 249 } // namespace vr_shell |
| 246 | 250 |
| 247 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 251 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| OLD | NEW |