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

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

Issue 2343023002: Switch WebVR to handle GvrApi management through VrShellDelegate (Closed)
Patch Set: Renamed onNativeLibraryReady to initializeNative Created 4 years, 3 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/android/gvr/gvr_delegate.cc ('k') | device/vr/android/gvr/gvr_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/android/gvr/gvr_device.h
diff --git a/device/vr/android/gvr/gvr_device.h b/device/vr/android/gvr/gvr_device.h
index 76f6259bc15e16674fc727bb54e93f834697ac52..a13c0696934c43572e0fa4dd700960cb7f8fd742 100644
--- a/device/vr/android/gvr/gvr_device.h
+++ b/device/vr/android/gvr/gvr_device.h
@@ -8,13 +8,18 @@
#include "base/macros.h"
#include "device/vr/vr_device.h"
+namespace gvr {
+class GvrApi;
+} // namespace gvr
+
namespace device {
+class GvrDeviceProvider;
class GvrDelegate;
class GvrDevice : public VRDevice {
public:
- GvrDevice(VRDeviceProvider* provider, GvrDelegate* delegate);
+ GvrDevice(GvrDeviceProvider* provider, GvrDelegate* delegate);
~GvrDevice() override;
// VRDevice
@@ -29,8 +34,13 @@ class GvrDevice : public VRDevice {
void UpdateLayerBounds(VRLayerBoundsPtr leftBounds,
VRLayerBoundsPtr rightBounds) override;
+ void SetDelegate(GvrDelegate* delegate);
+
private:
+ gvr::GvrApi* GetGvrApi();
+
GvrDelegate* delegate_;
+ GvrDeviceProvider* gvr_provider_;
DISALLOW_COPY_AND_ASSIGN(GvrDevice);
};
« no previous file with comments | « device/vr/android/gvr/gvr_delegate.cc ('k') | device/vr/android/gvr/gvr_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698