| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 bool hasConnectedCallback() const override; | 50 bool hasConnectedCallback() const override; |
| 51 bool hasDisconnectedCallback() const override; | 51 bool hasDisconnectedCallback() const override; |
| 52 bool hasAdoptedCallback() const override; | 52 bool hasAdoptedCallback() const override; |
| 53 | 53 |
| 54 void runConnectedCallback(Element*) override; | 54 void runConnectedCallback(Element*) override; |
| 55 void runDisconnectedCallback(Element*) override; | 55 void runDisconnectedCallback(Element*) override; |
| 56 void runAdoptedCallback(Element*) override; | 56 void runAdoptedCallback( |
| 57 Element*, Document* oldOwner, Document* newOwner) override; |
| 57 void runAttributeChangedCallback(Element*, const QualifiedName&, | 58 void runAttributeChangedCallback(Element*, const QualifiedName&, |
| 58 const AtomicString& oldValue, const AtomicString& newValue) override; | 59 const AtomicString& oldValue, const AtomicString& newValue) override; |
| 59 | 60 |
| 60 private: | 61 private: |
| 61 ScriptCustomElementDefinition( | 62 ScriptCustomElementDefinition( |
| 62 ScriptState*, | 63 ScriptState*, |
| 63 const CustomElementDescriptor&, | 64 const CustomElementDescriptor&, |
| 64 const v8::Local<v8::Object>& constructor, | 65 const v8::Local<v8::Object>& constructor, |
| 65 const v8::Local<v8::Object>& prototype, | 66 const v8::Local<v8::Object>& prototype, |
| 66 const v8::Local<v8::Function>& connectedCallback, | 67 const v8::Local<v8::Function>& connectedCallback, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 82 ScopedPersistent<v8::Object> m_prototype; | 83 ScopedPersistent<v8::Object> m_prototype; |
| 83 ScopedPersistent<v8::Function> m_connectedCallback; | 84 ScopedPersistent<v8::Function> m_connectedCallback; |
| 84 ScopedPersistent<v8::Function> m_disconnectedCallback; | 85 ScopedPersistent<v8::Function> m_disconnectedCallback; |
| 85 ScopedPersistent<v8::Function> m_adoptedCallback; | 86 ScopedPersistent<v8::Function> m_adoptedCallback; |
| 86 ScopedPersistent<v8::Function> m_attributeChangedCallback; | 87 ScopedPersistent<v8::Function> m_attributeChangedCallback; |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 } // namespace blink | 90 } // namespace blink |
| 90 | 91 |
| 91 #endif // ScriptCustomElementDefinition_h | 92 #endif // ScriptCustomElementDefinition_h |
| OLD | NEW |