| Index: third_party/WebKit/Source/core/html/HTMLFrameletElement.h
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElement.h b/third_party/WebKit/Source/core/html/HTMLFrameletElement.h
|
| similarity index 54%
|
| copy from third_party/WebKit/Source/core/html/HTMLIFrameElement.h
|
| copy to third_party/WebKit/Source/core/html/HTMLFrameletElement.h
|
| index c0a342c73efff72fbf4f478c2259a854b803a6d9..adbe339fd1c0468d1f1c8b0b31e157c418ef8e10 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.h
|
| +++ b/third_party/WebKit/Source/core/html/HTMLFrameletElement.h
|
| @@ -21,51 +21,63 @@
|
| *
|
| */
|
|
|
| -#ifndef HTMLIFrameElement_h
|
| -#define HTMLIFrameElement_h
|
| +#ifndef HTMLFrameletElement_h
|
| +#define HTMLFrameletElement_h
|
|
|
| +#include "core/CoreExport.h"
|
| #include "core/html/HTMLFrameElementBase.h"
|
| +#include "core/html/HTMLFrameOwnerElement.h"
|
| #include "core/html/HTMLIFrameElementSandbox.h"
|
|
|
| namespace blink {
|
|
|
| -class HTMLIFrameElement final : public HTMLFrameElementBase, public DOMSettableTokenListObserver {
|
| +class Framelet;
|
| +class WebLayer;
|
| +
|
| +class HTMLFrameletElement final : public HTMLFrameOwnerElement {
|
| DEFINE_WRAPPERTYPEINFO();
|
| - WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElement);
|
| + WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLFrameletElement);
|
| +
|
| public:
|
| - DECLARE_NODE_FACTORY(HTMLIFrameElement);
|
| - DECLARE_VIRTUAL_TRACE();
|
| - ~HTMLIFrameElement() override;
|
| - DOMSettableTokenList* sandbox() const;
|
| + DECLARE_NODE_FACTORY(HTMLFrameletElement);
|
| + ~HTMLFrameletElement() override;
|
| +
|
| + BLINK_EXPORT void setWebLayer(WebLayer*);
|
| + WebLayer* webLayer() { return m_webLayer; }
|
| +
|
| + BLINK_EXPORT void setFramelet(Framelet*);
|
| + Framelet* framelet() { return m_framelet; }
|
| +
|
| + void attach(const AttachContext& = AttachContext()) final;
|
| + void defaultEventHandler(Event*) final;
|
| + void detach(const AttachContext& = AttachContext()) final;
|
| + bool isKeyboardFocusable() const final;
|
| + bool supportsFocus() const final;
|
| +
|
| + // Node overrides
|
| + bool isFrameletElement() const override { return true; }
|
|
|
| private:
|
| - explicit HTMLIFrameElement(Document&);
|
| + explicit HTMLFrameletElement(Document&);
|
| +
|
| + void setURL(const String&);
|
|
|
| void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicString&) override;
|
| - bool isPresentationAttribute(const QualifiedName&) const override;
|
| void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet*) override;
|
|
|
| - InsertionNotificationRequest insertedInto(ContainerNode*) override;
|
| - void removedFrom(ContainerNode*) override;
|
| -
|
| bool layoutObjectIsNeeded(const ComputedStyle&) override;
|
| LayoutObject* createLayoutObject(const ComputedStyle&) override;
|
|
|
| - bool loadedNonEmptyDocument() const override { return m_didLoadNonEmptyDocument; }
|
| - void didLoadNonEmptyDocument() override { m_didLoadNonEmptyDocument = true; }
|
| - bool isInteractiveContent() const override;
|
| -
|
| - void valueWasSet() override;
|
| -
|
| - ReferrerPolicy referrerPolicyAttribute() override;
|
| + bool isInteractiveContent() const override { return true; }
|
|
|
| - AtomicString m_name;
|
| - bool m_didLoadNonEmptyDocument;
|
| - RefPtrWillBeMember<HTMLIFrameElementSandbox> m_sandbox;
|
| + Node::InsertionNotificationRequest insertedInto(ContainerNode* insertionPoint) override;
|
| + void didNotifySubtreeInsertionsToDocument() final;
|
|
|
| - ReferrerPolicy m_referrerPolicy;
|
| + WebLayer* m_webLayer;
|
| + Framelet* m_framelet;
|
| + KURL m_URL;
|
| };
|
|
|
| } // namespace blink
|
|
|
| -#endif // HTMLIFrameElement_h
|
| +#endif // HTMLFrameletElement_h
|
|
|