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

Unified Diff: third_party/WebKit/Source/core/html/HTMLFrameletElement.h

Issue 1602663003: Framelet Prototype 2016 using Mojo IPC Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Disabled oilpan Created 4 years, 11 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/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
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCollection.cpp ('k') | third_party/WebKit/Source/core/html/HTMLFrameletElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698