Index: third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h b/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h |
index c8d7301f0e8b87f6b1d8dc07cdbe5765ffaa94b6..5b76fc0ff0561da935945897d9c57df693c66a9f 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h |
@@ -35,6 +35,7 @@ public: |
const v8::Local<v8::Object>& prototype, |
const v8::Local<v8::Function>& connectedCallback, |
const v8::Local<v8::Function>& disconnectedCallback, |
+ const v8::Local<v8::Function>& adoptedCallback, |
const v8::Local<v8::Function>& attributeChangedCallback, |
const HashSet<AtomicString>& observedAttributes); |
@@ -46,11 +47,19 @@ public: |
HTMLElement* createElementSync(Document&, const QualifiedName&) override; |
HTMLElement* createElementSync(Document&, const QualifiedName&, ExceptionState&) override; |
+ void fireErrorEvent( |
+ ScriptState*, |
+ const String& message, |
+ v8::Local<v8::Value> exception, |
+ std::unique_ptr<SourceLocation>); |
+ |
bool hasConnectedCallback() const override; |
bool hasDisconnectedCallback() const override; |
+ bool hasAdoptedCallback() const override; |
void runConnectedCallback(Element*) override; |
void runDisconnectedCallback(Element*) override; |
+ void runAdoptedCallback(Element*) override; |
void runAttributeChangedCallback(Element*, const QualifiedName&, |
const AtomicString& oldValue, const AtomicString& newValue) override; |
@@ -62,6 +71,7 @@ private: |
const v8::Local<v8::Object>& prototype, |
const v8::Local<v8::Function>& connectedCallback, |
const v8::Local<v8::Function>& disconnectedCallback, |
+ const v8::Local<v8::Function>& adoptedCallback, |
const v8::Local<v8::Function>& attributeChangedCallback, |
const HashSet<AtomicString>& observedAttributes); |
@@ -78,6 +88,7 @@ private: |
ScopedPersistent<v8::Object> m_prototype; |
ScopedPersistent<v8::Function> m_connectedCallback; |
ScopedPersistent<v8::Function> m_disconnectedCallback; |
+ ScopedPersistent<v8::Function> m_adoptedCallback; |
ScopedPersistent<v8::Function> m_attributeChangedCallback; |
}; |