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

Unified Diff: device/vr/android/gvr/gvr_delegate.h

Issue 2398103002: Enable magic window mode with new Gvr (Closed)
Patch Set: reviews 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/vr/BUILD.gn ('k') | device/vr/android/gvr/gvr_device_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/android/gvr/gvr_delegate.h
diff --git a/device/vr/android/gvr/gvr_delegate.h b/device/vr/android/gvr/gvr_delegate.h
index 18be9b88e594d98785ef0a4fc1514cc1709b5bc2..d7b4297e97f3523fc0370dc64d2d233f51aafba0 100644
--- a/device/vr/android/gvr/gvr_delegate.h
+++ b/device/vr/android/gvr/gvr_delegate.h
@@ -15,18 +15,6 @@ class GvrApi;
namespace device {
-class DEVICE_VR_EXPORT GvrDelegateProvider {
- public:
- static void SetInstance(GvrDelegateProvider* delegate_provider);
- static GvrDelegateProvider* GetInstance();
-
- virtual bool RequestWebVRPresent(GvrDeviceProvider* device_provider) = 0;
- virtual void ExitWebVRPresent() = 0;
-
- private:
- static GvrDelegateProvider* delegate_provider_;
-};
-
class DEVICE_VR_EXPORT GvrDelegate {
public:
virtual void SetWebVRSecureOrigin(bool secure_origin) = 0;
@@ -41,6 +29,20 @@ class DEVICE_VR_EXPORT GvrDelegate {
virtual gvr::GvrApi* gvr_api() = 0;
};
+class DEVICE_VR_EXPORT GvrDelegateProvider {
+ public:
+ static void SetInstance(GvrDelegateProvider* delegate_provider);
+ static GvrDelegateProvider* GetInstance();
+
+ virtual bool RequestWebVRPresent(GvrDeviceProvider* device_provider) = 0;
+ virtual void ExitWebVRPresent() = 0;
+ virtual GvrDelegate* GetNonPresentingDelegate() = 0;
+ virtual void DestroyNonPresentingDelegate() = 0;
+
+ private:
+ static GvrDelegateProvider* delegate_provider_;
+};
+
} // namespace device
#endif // DEVICE_VR_ANDROID_GVR_DELEGATE_H
« no previous file with comments | « device/vr/BUILD.gn ('k') | device/vr/android/gvr/gvr_device_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698