| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 void OnTabUpdated(JNIEnv* env, | 104 void OnTabUpdated(JNIEnv* env, |
| 105 const base::android::JavaParamRef<jobject>& obj, | 105 const base::android::JavaParamRef<jobject>& obj, |
| 106 jboolean incognito, | 106 jboolean incognito, |
| 107 jint id, | 107 jint id, |
| 108 jstring jtitle); | 108 jstring jtitle); |
| 109 void OnTabRemoved(JNIEnv* env, | 109 void OnTabRemoved(JNIEnv* env, |
| 110 const base::android::JavaParamRef<jobject>& obj, | 110 const base::android::JavaParamRef<jobject>& obj, |
| 111 jboolean incognito, | 111 jboolean incognito, |
| 112 jint id); | 112 jint id); |
| 113 void OnContentPaused(bool paused); | 113 void OnContentPaused(bool paused); |
| 114 void NavigateBack(); |
| 114 base::android::ScopedJavaGlobalRef<jobject> TakeContentSurface( | 115 base::android::ScopedJavaGlobalRef<jobject> TakeContentSurface( |
| 115 JNIEnv* env, | 116 JNIEnv* env, |
| 116 const base::android::JavaParamRef<jobject>& obj); | 117 const base::android::JavaParamRef<jobject>& obj); |
| 117 void RestoreContentSurface(JNIEnv* env, | 118 void RestoreContentSurface(JNIEnv* env, |
| 118 const base::android::JavaParamRef<jobject>& obj); | 119 const base::android::JavaParamRef<jobject>& obj); |
| 119 void SetHistoryButtonsEnabled(JNIEnv* env, | 120 void SetHistoryButtonsEnabled(JNIEnv* env, |
| 120 const base::android::JavaParamRef<jobject>& obj, | 121 const base::android::JavaParamRef<jobject>& obj, |
| 121 jboolean can_go_back, | 122 jboolean can_go_back, |
| 122 jboolean can_go_forward); | 123 jboolean can_go_forward); |
| 123 | 124 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 base::WeakPtrFactory<VrShell> weak_ptr_factory_; | 221 base::WeakPtrFactory<VrShell> weak_ptr_factory_; |
| 221 | 222 |
| 222 DISALLOW_COPY_AND_ASSIGN(VrShell); | 223 DISALLOW_COPY_AND_ASSIGN(VrShell); |
| 223 }; | 224 }; |
| 224 | 225 |
| 225 bool RegisterVrShell(JNIEnv* env); | 226 bool RegisterVrShell(JNIEnv* env); |
| 226 | 227 |
| 227 } // namespace vr_shell | 228 } // namespace vr_shell |
| 228 | 229 |
| 229 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 230 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| OLD | NEW |