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

Unified Diff: public/platform/Platform.h

Issue 848053002: Adding WebVR interface to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed feedback from philipj@opera.com, rebased Created 5 years, 10 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: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index 90a245aa4fa9f3810e9d045936d86c4d235b7aae..c55b953c5d51f110726848d99066c18fd67522ed 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -48,13 +48,17 @@
#include "WebGraphicsContext3D.h"
#include "WebLocalizedString.h"
#include "WebPlatformEventType.h"
+#include "WebSize.h"
#include "WebSpeechSynthesizer.h"
#include "WebStorageQuotaCallbacks.h"
#include "WebStorageQuotaType.h"
#include "WebString.h"
#include "WebURLError.h"
+#include "WebVR.h"
#include "WebVector.h"
+#include <vector>
+
class GrContext;
namespace blink {
@@ -219,6 +223,19 @@ public:
virtual void sampleGamepads(WebGamepads& into) { into.length = 0; }
+ // WebVR -------------------------------------------------------------
+
+ virtual void getVRDevices(std::vector<blink::WebVRDevice>* devices) { }
sof 2015/02/24 12:35:29 Shouldn't WebVector<> be used here?
+
+ virtual void getHMDSensorState(unsigned index, double timeOffset, blink::WebHMDSensorState& into) { }
+
+ virtual void resetVRSensor(unsigned index) { }
+
+ virtual void getVRRenderTargetSize(unsigned index,
+ blink::WebVRFieldOfView leftFov,
+ blink::WebVRFieldOfView rightFov,
+ blink::WebSize* size) { };
+
// History -------------------------------------------------------------
// Returns the hash for the given canonicalized URL for use in visited

Powered by Google App Engine
This is Rietveld 408576698