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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp

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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Simon Hausmann (hausmann@kde.org) 4 * (C) 2000 Simon Hausmann (hausmann@kde.org)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2009 Ericsson AB. All rights reserved. 7 * Copyright (C) 2009 Ericsson AB. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 UseCounter::count(document(), UseCounter::SandboxViaIFrame); 109 UseCounter::count(document(), UseCounter::SandboxViaIFrame);
110 } else if (name == referrerpolicyAttr) { 110 } else if (name == referrerpolicyAttr) {
111 m_referrerPolicy = ReferrerPolicyDefault; 111 m_referrerPolicy = ReferrerPolicyDefault;
112 if (!value.isNull()) 112 if (!value.isNull())
113 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords(value, &m _referrerPolicy); 113 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords(value, &m _referrerPolicy);
114 } else if (name == allowfullscreenAttr) { 114 } else if (name == allowfullscreenAttr) {
115 bool oldAllowFullscreen = m_allowFullscreen; 115 bool oldAllowFullscreen = m_allowFullscreen;
116 m_allowFullscreen = !value.isNull(); 116 m_allowFullscreen = !value.isNull();
117 if (m_allowFullscreen != oldAllowFullscreen) 117 if (m_allowFullscreen != oldAllowFullscreen)
118 frameOwnerPropertiesChanged(); 118 frameOwnerPropertiesChanged();
119 } else if (name == allowvrAttr) {
120 bool oldAllowVR = m_allowVR;
121 m_allowVR = !value.isNull();
122 if (m_allowVR != oldAllowVR)
123 frameOwnerPropertiesChanged();
119 } else if (name == permissionsAttr) { 124 } else if (name == permissionsAttr) {
120 if (initializePermissionsAttribute()) 125 if (initializePermissionsAttribute())
121 m_permissions->setValue(value); 126 m_permissions->setValue(value);
122 } else { 127 } else {
123 if (name == srcAttr) 128 if (name == srcAttr)
124 logUpdateAttributeIfIsolatedWorldAndInDocument("iframe", srcAttr, ol dValue, value); 129 logUpdateAttributeIfIsolatedWorldAndInDocument("iframe", srcAttr, ol dValue, value);
125 HTMLFrameElementBase::parseAttribute(name, oldValue, value); 130 HTMLFrameElementBase::parseAttribute(name, oldValue, value);
126 } 131 }
127 } 132 }
128 133
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 { 193 {
189 if (!RuntimeEnabledFeatures::permissionDelegationEnabled()) 194 if (!RuntimeEnabledFeatures::permissionDelegationEnabled())
190 return false; 195 return false;
191 196
192 if (!m_permissions) 197 if (!m_permissions)
193 m_permissions = HTMLIFrameElementPermissions::create(this); 198 m_permissions = HTMLIFrameElementPermissions::create(this);
194 return true; 199 return true;
195 } 200 }
196 201
197 } // namespace blink 202 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698