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