| 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 "platform/wtf/Allocator.h" |
| 10 #include "wtf/Noncopyable.h" | 10 #include "platform/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 | 17 |
| 18 // Implement CustomElementDefinitionBuilder to provide | 18 // Implement CustomElementDefinitionBuilder to provide |
| 19 // technology-specific steps for CustomElementRegistry.define. | 19 // technology-specific steps for CustomElementRegistry.define. |
| 20 // 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 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 45 // should not proceed. | 45 // should not proceed. |
| 46 virtual bool RememberOriginalProperties() = 0; | 46 virtual bool RememberOriginalProperties() = 0; |
| 47 | 47 |
| 48 // Produce the definition. This must produce a definition. | 48 // Produce the definition. This must produce a definition. |
| 49 virtual CustomElementDefinition* Build(const CustomElementDescriptor&) = 0; | 49 virtual CustomElementDefinition* Build(const CustomElementDescriptor&) = 0; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace blink | 52 } // namespace blink |
| 53 | 53 |
| 54 #endif // CustomElementDefinitionBuilder_h | 54 #endif // CustomElementDefinitionBuilder_h |
| OLD | NEW |