Index: device/vr/android/gvr/gvr_device_provider.h |
diff --git a/device/vr/android/gvr/gvr_device_provider.h b/device/vr/android/gvr/gvr_device_provider.h |
index 5793021566859838b80056bb5871fdc0cc82756f..d215e603b89730283de7f327e089ddcef9d5996d 100644 |
--- a/device/vr/android/gvr/gvr_device_provider.h |
+++ b/device/vr/android/gvr/gvr_device_provider.h |
@@ -11,9 +11,11 @@ |
#include "base/macros.h" |
#include "device/vr/vr_device_provider.h" |
#include "device/vr/vr_export.h" |
+#include "device/vr/vr_service.mojom.h" |
namespace device { |
+class GvrDelegateProvider; |
class GvrDevice; |
class DEVICE_VR_EXPORT GvrDeviceProvider : public VRDeviceProvider { |
@@ -27,14 +29,17 @@ class DEVICE_VR_EXPORT GvrDeviceProvider : public VRDeviceProvider { |
void SetListeningForActivate(bool listening) override; |
// Called from GvrDevice. |
- void RequestPresent(const base::Callback<void(bool)>& callback); |
+ void RequestPresent(mojom::VRSubmitFrameClientPtr submit_client, |
+ const base::Callback<void(bool)>& callback); |
void ExitPresent(); |
+ device::GvrDelegateProvider* GetDelegateProvider(); |
+ |
GvrDevice* Device() { return vr_device_.get(); } |
private: |
+ void Initialize(device::GvrDelegateProvider* provider); |
std::unique_ptr<GvrDevice> vr_device_; |
- bool initialized_ = false; |
DISALLOW_COPY_AND_ASSIGN(GvrDeviceProvider); |
}; |