Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| 11 * | 11 * |
| 12 * This library is distributed in the hope that it will be useful, | 12 * This library is distributed in the hope that it will be useful, |
| 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 * Library General Public License for more details. | 15 * Library General Public License for more details. |
| 16 * | 16 * |
| 17 * You should have received a copy of the GNU Library General Public License | 17 * You should have received a copy of the GNU Library General Public License |
| 18 * along with this library; see the file COPYING.LIB. If not, write to | 18 * along with this library; see the file COPYING.LIB. If not, write to |
| 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 20 * Boston, MA 02110-1301, USA. | 20 * Boston, MA 02110-1301, USA. |
| 21 * | 21 * |
| 22 */ | 22 */ |
| 23 | 23 |
| 24 #ifndef HTMLIFrameElement_h | 24 #ifndef HTMLIFrameElement_h |
| 25 #define HTMLIFrameElement_h | 25 #define HTMLIFrameElement_h |
| 26 | 26 |
| 27 #include "core/CoreExport.h" | |
| 27 #include "core/html/HTMLFrameElementBase.h" | 28 #include "core/html/HTMLFrameElementBase.h" |
| 29 #include "core/html/HTMLIFrameElementPermissions.h" | |
| 28 #include "core/html/HTMLIFrameElementSandbox.h" | 30 #include "core/html/HTMLIFrameElementSandbox.h" |
| 31 #include "public/platform/WebVector.h" | |
| 32 #include "public/platform/modules/permissions/WebPermissionType.h" | |
| 29 | 33 |
| 30 namespace blink { | 34 namespace blink { |
| 31 | 35 |
| 32 class HTMLIFrameElement final : public HTMLFrameElementBase, public DOMTokenList Observer { | 36 class CORE_EXPORT HTMLIFrameElement final : public HTMLFrameElementBase { |
| 33 DEFINE_WRAPPERTYPEINFO(); | 37 DEFINE_WRAPPERTYPEINFO(); |
| 34 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElement); | 38 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElement); |
|
tkent
2016/06/23 04:57:27
This line should be removed because this doesn't i
raymes
2016/06/27 08:09:50
Done.
| |
| 35 public: | 39 public: |
| 36 DECLARE_NODE_FACTORY(HTMLIFrameElement); | 40 DECLARE_NODE_FACTORY(HTMLIFrameElement); |
| 37 DECLARE_VIRTUAL_TRACE(); | 41 DECLARE_VIRTUAL_TRACE(); |
| 38 ~HTMLIFrameElement() override; | 42 ~HTMLIFrameElement() override; |
| 39 DOMTokenList* sandbox() const; | 43 DOMTokenList* sandbox() const; |
| 44 DOMTokenList* permissions() const; | |
| 45 | |
| 46 void sandboxValueWasSet(); | |
| 47 void permissionsValueWasSet(); | |
| 40 | 48 |
| 41 private: | 49 private: |
| 42 explicit HTMLIFrameElement(Document&); | 50 explicit HTMLIFrameElement(Document&); |
| 43 | 51 |
| 44 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override; | 52 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override; |
| 45 bool isPresentationAttribute(const QualifiedName&) const override; | 53 bool isPresentationAttribute(const QualifiedName&) const override; |
| 46 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override; | 54 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override; |
| 47 | 55 |
| 48 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 56 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 49 void removedFrom(ContainerNode*) override; | 57 void removedFrom(ContainerNode*) override; |
| 50 | 58 |
| 51 bool layoutObjectIsNeeded(const ComputedStyle&) override; | 59 bool layoutObjectIsNeeded(const ComputedStyle&) override; |
| 52 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 60 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
| 53 | 61 |
| 54 bool loadedNonEmptyDocument() const override { return m_didLoadNonEmptyDocum ent; } | 62 bool loadedNonEmptyDocument() const override { return m_didLoadNonEmptyDocum ent; } |
| 55 void didLoadNonEmptyDocument() override { m_didLoadNonEmptyDocument = true; } | 63 void didLoadNonEmptyDocument() override { m_didLoadNonEmptyDocument = true; } |
| 56 bool isInteractiveContent() const override; | 64 bool isInteractiveContent() const override; |
| 57 | 65 |
| 58 void valueWasSet() override; | |
| 59 | |
| 60 ReferrerPolicy referrerPolicyAttribute() override; | 66 ReferrerPolicy referrerPolicyAttribute() override; |
| 61 | 67 |
| 62 bool allowFullscreen() const override { return m_allowFullscreen; } | 68 bool allowFullscreen() const override { return m_allowFullscreen; } |
| 63 | 69 |
| 70 const WebVector<WebPermissionType>* delegatedPermissions() const override { return &m_delegatedPermissions; } | |
| 71 | |
| 64 AtomicString m_name; | 72 AtomicString m_name; |
| 65 bool m_didLoadNonEmptyDocument; | 73 bool m_didLoadNonEmptyDocument; |
| 66 bool m_allowFullscreen; | 74 bool m_allowFullscreen; |
| 67 Member<HTMLIFrameElementSandbox> m_sandbox; | 75 Member<HTMLIFrameElementSandbox> m_sandbox; |
| 76 Member<HTMLIFrameElementPermissions> m_permissions; | |
| 77 | |
| 78 WebVector<WebPermissionType> m_delegatedPermissions; | |
| 68 | 79 |
| 69 ReferrerPolicy m_referrerPolicy; | 80 ReferrerPolicy m_referrerPolicy; |
| 70 }; | 81 }; |
| 71 | 82 |
| 72 } // namespace blink | 83 } // namespace blink |
| 73 | 84 |
| 74 #endif // HTMLIFrameElement_h | 85 #endif // HTMLIFrameElement_h |
| OLD | NEW |