| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 const gpu::MailboxHolder& mailbox) override; | 208 const gpu::MailboxHolder& mailbox) override; |
| 209 void UpdateWebVRTextureBounds(int16_t frame_index, | 209 void UpdateWebVRTextureBounds(int16_t frame_index, |
| 210 const gvr::Rectf& left_bounds, | 210 const gvr::Rectf& left_bounds, |
| 211 const gvr::Rectf& right_bounds, | 211 const gvr::Rectf& right_bounds, |
| 212 const gvr::Sizei& source_size) override; | 212 const gvr::Sizei& source_size) override; |
| 213 void OnVRVsyncProviderRequest( | 213 void OnVRVsyncProviderRequest( |
| 214 device::mojom::VRVSyncProviderRequest request) override; | 214 device::mojom::VRVSyncProviderRequest request) override; |
| 215 void UpdateVSyncInterval(int64_t timebase_nanos, | 215 void UpdateVSyncInterval(int64_t timebase_nanos, |
| 216 double interval_seconds) override; | 216 double interval_seconds) override; |
| 217 bool SupportsPresentation() override; | 217 bool SupportsPresentation() override; |
| 218 void ResetPose() override; | |
| 219 void CreateVRDisplayInfo( | 218 void CreateVRDisplayInfo( |
| 220 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, | 219 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, |
| 221 uint32_t device_id) override; | 220 uint32_t device_id) override; |
| 222 | 221 |
| 223 void ProcessTabArray(JNIEnv* env, jobjectArray tabs, bool incognito); | 222 void ProcessTabArray(JNIEnv* env, jobjectArray tabs, bool incognito); |
| 224 | 223 |
| 225 bool vr_shell_enabled_; | 224 bool vr_shell_enabled_; |
| 226 | 225 |
| 227 std::unique_ptr<UiInterface> html_interface_; | 226 std::unique_ptr<UiInterface> html_interface_; |
| 228 bool content_paused_ = false; | 227 bool content_paused_ = false; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 base::WeakPtrFactory<VrShell> weak_ptr_factory_; | 263 base::WeakPtrFactory<VrShell> weak_ptr_factory_; |
| 265 | 264 |
| 266 DISALLOW_COPY_AND_ASSIGN(VrShell); | 265 DISALLOW_COPY_AND_ASSIGN(VrShell); |
| 267 }; | 266 }; |
| 268 | 267 |
| 269 bool RegisterVrShell(JNIEnv* env); | 268 bool RegisterVrShell(JNIEnv* env); |
| 270 | 269 |
| 271 } // namespace vr_shell | 270 } // namespace vr_shell |
| 272 | 271 |
| 273 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 272 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| OLD | NEW |