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

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

Issue 2331223002: Added allowvr attribute to iframes and vrEnabled to Document (Closed)
Patch Set: Rebase and moved vrEnabled from navigator to document 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
Index: third_party/WebKit/Source/modules/vr/NavigatorVR.h
diff --git a/third_party/WebKit/Source/modules/vr/NavigatorVR.h b/third_party/WebKit/Source/modules/vr/NavigatorVR.h
index 4a4b2a3e8d64dfeeb5a4d6bbd9d50ad63cab8297..33c0f7e906455cc9476d30345d35ae87be668e11 100644
--- a/third_party/WebKit/Source/modules/vr/NavigatorVR.h
+++ b/third_party/WebKit/Source/modules/vr/NavigatorVR.h
@@ -27,11 +27,14 @@ class MODULES_EXPORT NavigatorVR final : public GarbageCollectedFinalized<Naviga
public:
static NavigatorVR* from(Document&);
static NavigatorVR& from(Navigator&);
+
virtual ~NavigatorVR();
static ScriptPromise getVRDisplays(ScriptState*, Navigator&);
ScriptPromise getVRDisplays(ScriptState*);
+ static bool allowedToUseVR(const Frame*);
+
VRController* controller();
Document* document();

Powered by Google App Engine
This is Rietveld 408576698