| 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 28 matching lines...) Expand all Loading... |
| 39 const HashSet<AtomicString>& observedAttributes); | 39 const HashSet<AtomicString>& observedAttributes); |
| 40 | 40 |
| 41 virtual ~ScriptCustomElementDefinition() = default; | 41 virtual ~ScriptCustomElementDefinition() = default; |
| 42 | 42 |
| 43 v8::Local<v8::Object> constructor() const; | 43 v8::Local<v8::Object> constructor() const; |
| 44 v8::Local<v8::Object> prototype() const; | 44 v8::Local<v8::Object> prototype() const; |
| 45 | 45 |
| 46 HTMLElement* createElementSync(Document&, const QualifiedName&) override; | 46 HTMLElement* createElementSync(Document&, const QualifiedName&) override; |
| 47 HTMLElement* createElementSync(Document&, const QualifiedName&, ExceptionSta
te&) override; | 47 HTMLElement* createElementSync(Document&, const QualifiedName&, ExceptionSta
te&) override; |
| 48 | 48 |
| 49 void fireErrorEvent( |
| 50 ScriptState*, |
| 51 const String& message, |
| 52 v8::Local<v8::Value> exception, |
| 53 std::unique_ptr<SourceLocation>); |
| 54 |
| 49 bool hasConnectedCallback() const override; | 55 bool hasConnectedCallback() const override; |
| 50 bool hasDisconnectedCallback() const override; | 56 bool hasDisconnectedCallback() const override; |
| 51 | 57 |
| 52 void runConnectedCallback(Element*) override; | 58 void runConnectedCallback(Element*) override; |
| 53 void runDisconnectedCallback(Element*) override; | 59 void runDisconnectedCallback(Element*) override; |
| 54 void runAttributeChangedCallback(Element*, const QualifiedName&, | 60 void runAttributeChangedCallback(Element*, const QualifiedName&, |
| 55 const AtomicString& oldValue, const AtomicString& newValue) override; | 61 const AtomicString& oldValue, const AtomicString& newValue) override; |
| 56 | 62 |
| 57 private: | 63 private: |
| 58 ScriptCustomElementDefinition( | 64 ScriptCustomElementDefinition( |
| (...skipping 18 matching lines...) Expand all Loading... |
| 77 ScopedPersistent<v8::Object> m_constructor; | 83 ScopedPersistent<v8::Object> m_constructor; |
| 78 ScopedPersistent<v8::Object> m_prototype; | 84 ScopedPersistent<v8::Object> m_prototype; |
| 79 ScopedPersistent<v8::Function> m_connectedCallback; | 85 ScopedPersistent<v8::Function> m_connectedCallback; |
| 80 ScopedPersistent<v8::Function> m_disconnectedCallback; | 86 ScopedPersistent<v8::Function> m_disconnectedCallback; |
| 81 ScopedPersistent<v8::Function> m_attributeChangedCallback; | 87 ScopedPersistent<v8::Function> m_attributeChangedCallback; |
| 82 }; | 88 }; |
| 83 | 89 |
| 84 } // namespace blink | 90 } // namespace blink |
| 85 | 91 |
| 86 #endif // ScriptCustomElementDefinition_h | 92 #endif // ScriptCustomElementDefinition_h |
| OLD | NEW |