Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h |
| diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h b/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h |
| index fb46146a12422198b4964149c9e4ca49ee22a1ac..483725f0ccc5906f8647f1dbbe3962a3c93cd259 100644 |
| --- a/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h |
| +++ b/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h |
| @@ -43,6 +43,21 @@ public: |
| void upgrade(Element*); |
| + // TODO(kojii): Change these methods to pure when script-side is implemented. |
| + virtual bool hasConnectedCallback() const { return true; } |
| + virtual bool hasDisconnectedCallback() const { return true; } |
| + virtual bool hasAttributeChangedCallback(const QualifiedName&) const { return true; } |
| + |
| + virtual void runConnectedCallback(Element*) {} |
| + virtual void runDisconnectedCallback(Element*) {} |
| + virtual void runAttributeChangedCallback(Element*, const QualifiedName&, const AtomicString& oldValue, const AtomicString& newValue) {} |
|
dominicc (has gone to gerrit)
2016/06/13 07:59:01
I have been trying to keep these files to 80 cols.
|
| + |
| + void enqueueUpgradeReaction(Element*); |
| + void enqueueConnectedCallback(Element*); |
| + void enqueueDisconnectedCallback(Element*); |
| + void enqueueAttributeChangedCallback(Element*, const QualifiedName&, |
| + const AtomicString& oldValue, const AtomicString& newValue); |
| + |
| protected: |
| virtual bool runConstructor(Element*) = 0; |