OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ScriptCustomElementDefinition_h | 5 #ifndef ScriptCustomElementDefinition_h |
6 #define ScriptCustomElementDefinition_h | 6 #define ScriptCustomElementDefinition_h |
7 | 7 |
8 #include "bindings/core/v8/ScopedPersistent.h" | 8 #include "bindings/core/v8/ScopedPersistent.h" |
9 #include "bindings/core/v8/ScriptState.h" | 9 #include "bindings/core/v8/ScriptState.h" |
10 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 const HashSet<AtomicString>& observedAttributes); | 40 const HashSet<AtomicString>& observedAttributes); |
41 | 41 |
42 virtual ~ScriptCustomElementDefinition() = default; | 42 virtual ~ScriptCustomElementDefinition() = default; |
43 | 43 |
44 v8::Local<v8::Object> constructor() const; | 44 v8::Local<v8::Object> constructor() const; |
45 v8::Local<v8::Object> prototype() const; | 45 v8::Local<v8::Object> prototype() const; |
46 | 46 |
47 HTMLElement* createElementSync(Document&, const QualifiedName&) override; | 47 HTMLElement* createElementSync(Document&, const QualifiedName&) override; |
48 HTMLElement* createElementSync(Document&, const QualifiedName&, ExceptionSta
te&) override; | 48 HTMLElement* createElementSync(Document&, const QualifiedName&, ExceptionSta
te&) override; |
49 | 49 |
50 void fireErrorEvent( | |
51 ScriptState*, | |
52 const String& message, | |
53 v8::Local<v8::Value> exception, | |
54 std::unique_ptr<SourceLocation>); | |
55 | |
56 bool hasConnectedCallback() const override; | 50 bool hasConnectedCallback() const override; |
57 bool hasDisconnectedCallback() const override; | 51 bool hasDisconnectedCallback() const override; |
58 bool hasAdoptedCallback() const override; | 52 bool hasAdoptedCallback() const override; |
59 | 53 |
60 void runConnectedCallback(Element*) override; | 54 void runConnectedCallback(Element*) override; |
61 void runDisconnectedCallback(Element*) override; | 55 void runDisconnectedCallback(Element*) override; |
62 void runAdoptedCallback(Element*) override; | 56 void runAdoptedCallback(Element*) override; |
63 void runAttributeChangedCallback(Element*, const QualifiedName&, | 57 void runAttributeChangedCallback(Element*, const QualifiedName&, |
64 const AtomicString& oldValue, const AtomicString& newValue) override; | 58 const AtomicString& oldValue, const AtomicString& newValue) override; |
65 | 59 |
(...skipping 22 matching lines...) Expand all Loading... |
88 ScopedPersistent<v8::Object> m_prototype; | 82 ScopedPersistent<v8::Object> m_prototype; |
89 ScopedPersistent<v8::Function> m_connectedCallback; | 83 ScopedPersistent<v8::Function> m_connectedCallback; |
90 ScopedPersistent<v8::Function> m_disconnectedCallback; | 84 ScopedPersistent<v8::Function> m_disconnectedCallback; |
91 ScopedPersistent<v8::Function> m_adoptedCallback; | 85 ScopedPersistent<v8::Function> m_adoptedCallback; |
92 ScopedPersistent<v8::Function> m_attributeChangedCallback; | 86 ScopedPersistent<v8::Function> m_attributeChangedCallback; |
93 }; | 87 }; |
94 | 88 |
95 } // namespace blink | 89 } // namespace blink |
96 | 90 |
97 #endif // ScriptCustomElementDefinition_h | 91 #endif // ScriptCustomElementDefinition_h |
OLD | NEW |