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

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

Issue 2265053004: Adding WebVR temporary presentation handling on mobile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased to fix UseCounter conflict Created 4 years, 4 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/VRDisplay.h
diff --git a/third_party/WebKit/Source/modules/vr/VRDisplay.h b/third_party/WebKit/Source/modules/vr/VRDisplay.h
index a4820fb958f1c02f78afa955b6968ebbc4c6675b..5ffeaefc9e65887babaf7b40a1fd163bfd4c55e3 100644
--- a/third_party/WebKit/Source/modules/vr/VRDisplay.h
+++ b/third_party/WebKit/Source/modules/vr/VRDisplay.h
@@ -11,6 +11,7 @@
#include "device/vr/vr_service.mojom-blink.h"
#include "modules/vr/VRDisplayCapabilities.h"
#include "modules/vr/VRLayer.h"
+#include "platform/Timer.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebGraphicsContext3DProvider.h"
#include "public/platform/WebThread.h"
@@ -85,6 +86,8 @@ private:
void didProcessTask() override;
void willProcessTask() override { }
+ void onFullscreenCheck(TimerBase*);
+
Member<NavigatorVR> m_navigatorVR;
unsigned m_displayId;
String m_displayName;
@@ -97,6 +100,9 @@ private:
Member<VREyeParameters> m_eyeParametersLeft;
Member<VREyeParameters> m_eyeParametersRight;
Member<VRPose> m_framePose;
+ VRLayer m_layer;
+
+ Timer<VRDisplay> m_fullscreenCheckTimer;
};
using VRDisplayVector = HeapVector<Member<VRDisplay>>;
« no previous file with comments | « third_party/WebKit/Source/modules/vr/NavigatorVR.cpp ('k') | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698