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 DEVICE_VR_ANDROID_GVR_DELEGATE_H | 5 #ifndef DEVICE_VR_ANDROID_GVR_DELEGATE_H |
6 #define DEVICE_VR_ANDROID_GVR_DELEGATE_H | 6 #define DEVICE_VR_ANDROID_GVR_DELEGATE_H |
7 | 7 |
8 #include "device/vr/android/gvr/gvr_device_provider.h" | 8 #include "device/vr/android/gvr/gvr_device_provider.h" |
9 #include "device/vr/vr_export.h" | 9 #include "device/vr/vr_export.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 virtual bool RequestWebVRPresent(GvrDeviceProvider* device_provider) = 0; | 22 virtual bool RequestWebVRPresent(GvrDeviceProvider* device_provider) = 0; |
23 virtual void ExitWebVRPresent() = 0; | 23 virtual void ExitWebVRPresent() = 0; |
24 | 24 |
25 private: | 25 private: |
26 static GvrDelegateProvider* delegate_provider_; | 26 static GvrDelegateProvider* delegate_provider_; |
27 }; | 27 }; |
28 | 28 |
29 class DEVICE_VR_EXPORT GvrDelegate { | 29 class DEVICE_VR_EXPORT GvrDelegate { |
30 public: | 30 public: |
| 31 virtual void SetWebVRSecureOrigin(bool secure_origin) = 0; |
31 virtual void SubmitWebVRFrame() = 0; | 32 virtual void SubmitWebVRFrame() = 0; |
32 virtual void UpdateWebVRTextureBounds(int eye, | 33 virtual void UpdateWebVRTextureBounds(int eye, |
33 float left, | 34 float left, |
34 float top, | 35 float top, |
35 float width, | 36 float width, |
36 float height) = 0; | 37 float height) = 0; |
37 | 38 |
38 virtual gvr::GvrApi* gvr_api() = 0; | 39 virtual gvr::GvrApi* gvr_api() = 0; |
39 }; | 40 }; |
40 | 41 |
41 } // namespace device | 42 } // namespace device |
42 | 43 |
43 #endif // DEVICE_VR_ANDROID_GVR_DELEGATE_H | 44 #endif // DEVICE_VR_ANDROID_GVR_DELEGATE_H |
OLD | NEW |