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

Unified Diff: third_party/WebKit/Source/modules/vr/VREyeParameters.h

Issue 1918143007: Updated Blink WebVR interfaces to WebVR v1 spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webvr_mojo
Patch Set: Fixed layout test Created 4 years, 7 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
Index: third_party/WebKit/Source/modules/vr/VREyeParameters.h
diff --git a/third_party/WebKit/Source/modules/vr/VREyeParameters.h b/third_party/WebKit/Source/modules/vr/VREyeParameters.h
index eea6c5675dc3cf2c9c629a732fab57359776361f..6a94144c1923142a2cdedbbf72189170996285ad 100644
--- a/third_party/WebKit/Source/modules/vr/VREyeParameters.h
+++ b/third_party/WebKit/Source/modules/vr/VREyeParameters.h
@@ -6,44 +6,35 @@
#define VREyeParameters_h
#include "bindings/core/v8/ScriptWrappable.h"
-#include "core/dom/DOMPoint.h"
-#include "core/dom/DOMRect.h"
+#include "core/dom/DOMTypedArray.h"
#include "modules/vr/VRFieldOfView.h"
#include "platform/heap/Handle.h"
-#include "public/platform/modules/vr/WebVR.h"
+
#include "wtf/Forward.h"
namespace blink {
-class VREyeParameters final : public GarbageCollected<VREyeParameters>, public ScriptWrappable {
+struct WebVREyeParameters;
+
+class VREyeParameters final : public GarbageCollectedFinalized<VREyeParameters>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static VREyeParameters* create()
- {
- return new VREyeParameters();
- }
+ VREyeParameters();
- VRFieldOfView* minimumFieldOfView() const { return m_minimumFieldOfView; }
- VRFieldOfView* maximumFieldOfView() const { return m_maximumFieldOfView; }
- VRFieldOfView* recommendedFieldOfView() const { return m_recommendedFieldOfView; }
- DOMPoint* eyeTranslation() const { return m_eyeTranslation; }
- VRFieldOfView* currentFieldOfView() const { return m_currentFieldOfView; }
- DOMRect* renderRect() const { return m_renderRect; }
+ DOMFloat32Array* offset() const { return m_offset; }
+ VRFieldOfView* fieldOfView() const { return m_fieldOfView; }
+ unsigned long renderWidth() const { return m_renderWidth; }
+ unsigned long renderHeight() const { return m_renderHeight; }
- void setFromWebVREyeParameters(const WebVREyeParameters&);
+ void update(const WebVREyeParameters&);
DECLARE_VIRTUAL_TRACE()
private:
- VREyeParameters();
-
- Member<VRFieldOfView> m_minimumFieldOfView;
- Member<VRFieldOfView> m_maximumFieldOfView;
- Member<VRFieldOfView> m_recommendedFieldOfView;
- Member<DOMPoint> m_eyeTranslation;
-
- Member<VRFieldOfView> m_currentFieldOfView;
- Member<DOMRect> m_renderRect;
+ Member<DOMFloat32Array> m_offset;
+ Member<VRFieldOfView> m_fieldOfView;
+ unsigned long m_renderWidth;
+ unsigned long m_renderHeight;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRDisplayCollection.cpp ('k') | third_party/WebKit/Source/modules/vr/VREyeParameters.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698