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

Unified Diff: third_party/WebKit/Source/web/RemoteFrameOwner.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/web/RemoteFrameOwner.h
diff --git a/third_party/WebKit/Source/web/RemoteFrameOwner.h b/third_party/WebKit/Source/web/RemoteFrameOwner.h
index aca360e1559041de2763eaf54793c972fc72b2c0..b2cc8f54cd81cee63c984e49d8cb4732118d4c6c 100644
--- a/third_party/WebKit/Source/web/RemoteFrameOwner.h
+++ b/third_party/WebKit/Source/web/RemoteFrameOwner.h
@@ -36,12 +36,14 @@ public:
int marginWidth() const override { return m_marginWidth; }
int marginHeight() const override { return m_marginHeight; }
bool allowFullscreen() const override { return m_allowFullscreen; }
+ bool allowVR() const override { return m_allowVR; }
const WebVector<WebPermissionType>& delegatedPermissions() const override { return m_delegatedPermissions; }
void setScrollingMode(WebFrameOwnerProperties::ScrollingMode);
void setMarginWidth(int marginWidth) { m_marginWidth = marginWidth; }
void setMarginHeight(int marginHeight) { m_marginHeight = marginHeight; }
void setAllowFullscreen(bool allowFullscreen) { m_allowFullscreen = allowFullscreen; }
+ void setAllowVR(bool allowVR) { m_allowVR = allowVR; }
void setDelegatedpermissions(const WebVector<WebPermissionType>& delegatedPermissions) { m_delegatedPermissions = delegatedPermissions; }
DECLARE_VIRTUAL_TRACE();
@@ -60,6 +62,7 @@ private:
int m_marginWidth;
int m_marginHeight;
bool m_allowFullscreen;
+ bool m_allowVR;
WebVector<WebPermissionType> m_delegatedPermissions;
};

Powered by Google App Engine
This is Rietveld 408576698