| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 void RenderViewHostChanged(content::RenderViewHost* old_host, | 195 void RenderViewHostChanged(content::RenderViewHost* old_host, |
| 196 content::RenderViewHost* new_host) override; | 196 content::RenderViewHost* new_host) override; |
| 197 void MainFrameWasResized(bool width_changed) override; | 197 void MainFrameWasResized(bool width_changed) override; |
| 198 void WebContentsDestroyed() override; | 198 void WebContentsDestroyed() override; |
| 199 | 199 |
| 200 // device::GvrDelegate implementation. | 200 // device::GvrDelegate implementation. |
| 201 void SetWebVRSecureOrigin(bool secure_origin) override; | 201 void SetWebVRSecureOrigin(bool secure_origin) override; |
| 202 void SubmitWebVRFrame(int16_t frame_index, | 202 void SubmitWebVRFrame(int16_t frame_index, |
| 203 const gpu::MailboxHolder& mailbox) override; | 203 const gpu::MailboxHolder& mailbox) override; |
| 204 void UpdateWebVRTextureBounds(int16_t frame_index, | 204 void UpdateWebVRTextureBounds(int16_t frame_index, |
| 205 const gvr::Rectf& left_bounds, | 205 const gfx::RectF& left_bounds, |
| 206 const gvr::Rectf& right_bounds, | 206 const gfx::RectF& right_bounds, |
| 207 const gvr::Sizei& source_size) override; | 207 const gfx::Size& source_size) override; |
| 208 void OnVRVsyncProviderRequest( | 208 void OnVRVsyncProviderRequest( |
| 209 device::mojom::VRVSyncProviderRequest request) override; | 209 device::mojom::VRVSyncProviderRequest request) override; |
| 210 void UpdateVSyncInterval(int64_t timebase_nanos, | 210 void UpdateVSyncInterval(int64_t timebase_nanos, |
| 211 double interval_seconds) override; | 211 double interval_seconds) override; |
| 212 void CreateVRDisplayInfo( | 212 void CreateVRDisplayInfo( |
| 213 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, | 213 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, |
| 214 uint32_t device_id) override; | 214 uint32_t device_id) override; |
| 215 | 215 |
| 216 // device::PresentingGvrDelegate implementation. | 216 // device::PresentingGvrDelegate implementation. |
| 217 void SetSubmitClient( | 217 void SetSubmitClient( |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 base::WeakPtrFactory<VrShell> weak_ptr_factory_; | 261 base::WeakPtrFactory<VrShell> weak_ptr_factory_; |
| 262 | 262 |
| 263 DISALLOW_COPY_AND_ASSIGN(VrShell); | 263 DISALLOW_COPY_AND_ASSIGN(VrShell); |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 bool RegisterVrShell(JNIEnv* env); | 266 bool RegisterVrShell(JNIEnv* env); |
| 267 | 267 |
| 268 } // namespace vr_shell | 268 } // namespace vr_shell |
| 269 | 269 |
| 270 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 270 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| OLD | NEW |