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 CustomElementDefinitionBuilder_h | 5 #ifndef CustomElementDefinitionBuilder_h |
6 #define CustomElementDefinitionBuilder_h | 6 #define CustomElementDefinitionBuilder_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
10 #include "wtf/Noncopyable.h" | 10 #include "wtf/Noncopyable.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class CustomElementDefinition; | 14 class CustomElementDefinition; |
15 class CustomElementDescriptor; | 15 class CustomElementDescriptor; |
16 class CustomElementRegistry; | 16 class CustomElementRegistry; |
17 class ExceptionState; | |
18 class ScriptState; | |
19 class ScriptValue; | |
20 | 17 |
21 // Implement CustomElementDefinitionBuilder to provide | 18 // Implement CustomElementDefinitionBuilder to provide |
22 // technology-specific steps for CustomElementRegistry.define. | 19 // technology-specific steps for CustomElementRegistry.define. |
23 // https://html.spec.whatwg.org/multipage/scripting.html#dom-customelementsregis
try-define | 20 // https://html.spec.whatwg.org/multipage/scripting.html#dom-customelementsregis
try-define |
24 class CORE_EXPORT CustomElementDefinitionBuilder { | 21 class CORE_EXPORT CustomElementDefinitionBuilder { |
25 STACK_ALLOCATED(); | 22 STACK_ALLOCATED(); |
26 WTF_MAKE_NONCOPYABLE(CustomElementDefinitionBuilder); | 23 WTF_MAKE_NONCOPYABLE(CustomElementDefinitionBuilder); |
27 | 24 |
28 public: | 25 public: |
29 CustomElementDefinitionBuilder() {} | 26 CustomElementDefinitionBuilder() {} |
(...skipping 18 matching lines...) Expand all Loading... |
48 // should not proceed. | 45 // should not proceed. |
49 virtual bool rememberOriginalProperties() = 0; | 46 virtual bool rememberOriginalProperties() = 0; |
50 | 47 |
51 // Produce the definition. This must produce a definition. | 48 // Produce the definition. This must produce a definition. |
52 virtual CustomElementDefinition* build(const CustomElementDescriptor&) = 0; | 49 virtual CustomElementDefinition* build(const CustomElementDescriptor&) = 0; |
53 }; | 50 }; |
54 | 51 |
55 } // namespace blink | 52 } // namespace blink |
56 | 53 |
57 #endif // CustomElementDefinitionBuilder_h | 54 #endif // CustomElementDefinitionBuilder_h |
OLD | NEW |