| 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 CustomElementDefinition_h | 5 #ifndef CustomElementDefinition_h |
| 6 #define CustomElementDefinition_h | 6 #define CustomElementDefinition_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/custom/CustomElementDescriptor.h" | 9 #include "core/dom/custom/CustomElementDescriptor.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 using ConstructionStack = HeapVector<Member<Element>, 1>; | 28 using ConstructionStack = HeapVector<Member<Element>, 1>; |
| 29 ConstructionStack& constructionStack() | 29 ConstructionStack& constructionStack() |
| 30 { | 30 { |
| 31 return m_constructionStack; | 31 return m_constructionStack; |
| 32 } | 32 } |
| 33 | 33 |
| 34 void upgrade(Element*); | 34 void upgrade(Element*); |
| 35 | 35 |
| 36 protected: | 36 protected: |
| 37 // TODO(dominicc): Make this pure virtual when the script side is | 37 virtual bool runConstructor(Element*) = 0; |
| 38 // implemented. | |
| 39 virtual bool runConstructor(Element*); | |
| 40 | 38 |
| 41 private: | 39 private: |
| 42 const CustomElementDescriptor m_descriptor; | 40 const CustomElementDescriptor m_descriptor; |
| 43 ConstructionStack m_constructionStack; | 41 ConstructionStack m_constructionStack; |
| 44 }; | 42 }; |
| 45 | 43 |
| 46 } // namespace blink | 44 } // namespace blink |
| 47 | 45 |
| 48 #endif // CustomElementDefinition_h | 46 #endif // CustomElementDefinition_h |
| OLD | NEW |