OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CustomElementDefinitionBuilder_h |
| 6 #define CustomElementDefinitionBuilder_h |
| 7 |
| 8 #include "core/CoreExport.h" |
| 9 #include "wtf/Allocator.h" |
| 10 #include "wtf/Noncopyable.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class CustomElementDefinition; |
| 15 class CustomElementDescriptor; |
| 16 class CustomElementsRegistry; |
| 17 class ExceptionState; |
| 18 class ScriptState; |
| 19 class ScriptValue; |
| 20 |
| 21 class CORE_EXPORT CustomElementDefinitionBuilder { |
| 22 STACK_ALLOCATED(); |
| 23 WTF_MAKE_NONCOPYABLE(CustomElementDefinitionBuilder); |
| 24 public: |
| 25 CustomElementDefinitionBuilder() { } |
| 26 virtual void checkConstructorIntrinsics() = 0; |
| 27 virtual void checkConstructorNotRegistered() = 0; |
| 28 virtual bool checkPrototype() = 0; |
| 29 virtual CustomElementDefinition* build(const CustomElementDescriptor&) = 0; |
| 30 }; |
| 31 |
| 32 } // namespace blink |
| 33 |
| 34 #endif // CustomElementDefinitionBuilder_h |
OLD | NEW |