Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: device/vr/android/gvr/gvr_delegate.h

Issue 2361533003: Expose secure origin state to WebVR renderer (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.cc ('k') | device/vr/android/gvr/gvr_device.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.cc ('k') | device/vr/android/gvr/gvr_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698