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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // FrameOwner overrides: 76 // FrameOwner overrides:
77 void setContentFrame(Frame&) override; 77 void setContentFrame(Frame&) override;
78 void clearContentFrame() override; 78 void clearContentFrame() override;
79 void dispatchLoad() override; 79 void dispatchLoad() override;
80 SandboxFlags getSandboxFlags() const override { return m_sandboxFlags; } 80 SandboxFlags getSandboxFlags() const override { return m_sandboxFlags; }
81 void renderFallbackContent() override { } 81 void renderFallbackContent() override { }
82 ScrollbarMode scrollingMode() const override { return ScrollbarAuto; } 82 ScrollbarMode scrollingMode() const override { return ScrollbarAuto; }
83 int marginWidth() const override { return -1; } 83 int marginWidth() const override { return -1; }
84 int marginHeight() const override { return -1; } 84 int marginHeight() const override { return -1; }
85 bool allowFullscreen() const override { return false; } 85 bool allowFullscreen() const override { return false; }
86 bool allowVR() const override { return false; }
86 const WebVector<WebPermissionType>& delegatedPermissions() const override; 87 const WebVector<WebPermissionType>& delegatedPermissions() const override;
87 88
88 DECLARE_VIRTUAL_TRACE(); 89 DECLARE_VIRTUAL_TRACE();
89 90
90 protected: 91 protected:
91 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); 92 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&);
92 void setSandboxFlags(SandboxFlags); 93 void setSandboxFlags(SandboxFlags);
93 94
94 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool replaceCurrentItem); 95 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool replaceCurrentItem);
95 bool isKeyboardFocusable() const override; 96 bool isKeyboardFocusable() const override;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 CORE_EXPORT static SubtreeRootSet& disabledSubtreeRoots(); 149 CORE_EXPORT static SubtreeRootSet& disabledSubtreeRoots();
149 150
150 Member<Node> m_root; 151 Member<Node> m_root;
151 }; 152 };
152 153
153 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal()); 154 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal());
154 155
155 } // namespace blink 156 } // namespace blink
156 157
157 #endif // HTMLFrameOwnerElement_h 158 #endif // HTMLFrameOwnerElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698