| 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 ScriptCustomElementDefinitionBuilder_h | 
|  | 6 #define ScriptCustomElementDefinitionBuilder_h | 
|  | 7 | 
|  | 8 #include "core/CoreExport.h" | 
|  | 9 #include "core/dom/custom/CustomElementDefinitionBuilder.h" | 
|  | 10 #include "platform/heap/Handle.h" | 
|  | 11 #include "v8.h" | 
|  | 12 #include "wtf/Allocator.h" | 
|  | 13 #include "wtf/Noncopyable.h" | 
|  | 14 #include "wtf/RefPtr.h" | 
|  | 15 | 
|  | 16 namespace blink { | 
|  | 17 | 
|  | 18 class CustomElementsRegistry; | 
|  | 19 class ExceptionState; | 
|  | 20 class ScriptState; | 
|  | 21 class ScriptValue; | 
|  | 22 | 
|  | 23 class CORE_EXPORT ScriptCustomElementDefinitionBuilder | 
|  | 24     : public CustomElementDefinitionBuilder { | 
|  | 25     STACK_ALLOCATED(); | 
|  | 26     WTF_MAKE_NONCOPYABLE(ScriptCustomElementDefinitionBuilder); | 
|  | 27 public: | 
|  | 28     ScriptCustomElementDefinitionBuilder( | 
|  | 29         ScriptState*, | 
|  | 30         CustomElementsRegistry*, | 
|  | 31         const ScriptValue& constructorScriptValue, | 
|  | 32         ExceptionState&); | 
|  | 33 | 
|  | 34     bool checkConstructorIntrinsics() override; | 
|  | 35     bool checkConstructorNotRegistered() override; | 
|  | 36     bool checkPrototype() override; | 
|  | 37     CustomElementDefinition* build(const CustomElementDescriptor&) override; | 
|  | 38 | 
|  | 39 private: | 
|  | 40     RefPtr<ScriptState> m_scriptState; | 
|  | 41     Member<CustomElementsRegistry> m_registry; | 
|  | 42     v8::Local<v8::Value> m_constructorValue; | 
|  | 43     v8::Local<v8::Object> m_constructor; | 
|  | 44     v8::Local<v8::Object> m_prototype; | 
|  | 45     ExceptionState& m_exceptionState; | 
|  | 46 }; | 
|  | 47 | 
|  | 48 } // namespace blink | 
|  | 49 | 
|  | 50 #endif // ScriptCustomElementDefinitionBuilder_h | 
| OLD | NEW | 
|---|