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

Unified Diff: third_party/WebKit/Source/core/frame/FrameOwner.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/core/frame/FrameOwner.h
diff --git a/third_party/WebKit/Source/core/frame/FrameOwner.h b/third_party/WebKit/Source/core/frame/FrameOwner.h
index 646444883fa52fe95804abdf5e81dcf076532624..243204337096b3a0dd9ff4e432c69888e155eb99 100644
--- a/third_party/WebKit/Source/core/frame/FrameOwner.h
+++ b/third_party/WebKit/Source/core/frame/FrameOwner.h
@@ -41,6 +41,7 @@ public:
virtual int marginWidth() const = 0;
virtual int marginHeight() const = 0;
virtual bool allowFullscreen() const = 0;
+ virtual bool allowVR() const = 0;
virtual const WebVector<WebPermissionType>& delegatedPermissions() const = 0;
};
@@ -64,6 +65,7 @@ public:
int marginWidth() const override { return -1; }
int marginHeight() const override { return -1; }
bool allowFullscreen() const override { return false; }
+ bool allowVR() const override { return false; }
const WebVector<WebPermissionType>& delegatedPermissions() const override
{
DEFINE_STATIC_LOCAL(WebVector<WebPermissionType>, permissions, ());

Powered by Google App Engine
This is Rietveld 408576698