| 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 ScriptCustomElementDefinitionBuilder_h | 5 #ifndef ScriptCustomElementDefinitionBuilder_h |
| 6 #define ScriptCustomElementDefinitionBuilder_h | 6 #define ScriptCustomElementDefinitionBuilder_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/custom/CustomElementDefinitionBuilder.h" | 9 #include "core/dom/custom/CustomElementDefinitionBuilder.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 ScriptState*, | 34 ScriptState*, |
| 35 CustomElementRegistry*, | 35 CustomElementRegistry*, |
| 36 const ScriptValue& constructor_script_value, | 36 const ScriptValue& constructor_script_value, |
| 37 ExceptionState&); | 37 ExceptionState&); |
| 38 ~ScriptCustomElementDefinitionBuilder(); | 38 ~ScriptCustomElementDefinitionBuilder(); |
| 39 | 39 |
| 40 bool CheckConstructorIntrinsics() override; | 40 bool CheckConstructorIntrinsics() override; |
| 41 bool CheckConstructorNotRegistered() override; | 41 bool CheckConstructorNotRegistered() override; |
| 42 bool CheckPrototype() override; | 42 bool CheckPrototype() override; |
| 43 bool RememberOriginalProperties() override; | 43 bool RememberOriginalProperties() override; |
| 44 CustomElementDefinition* Build(const CustomElementDescriptor&) override; | 44 CustomElementDefinition* Build(const CustomElementDescriptor&, |
| 45 CustomElementDefinition::Id) override; |
| 45 | 46 |
| 46 private: | 47 private: |
| 47 static ScriptCustomElementDefinitionBuilder* stack_; | 48 static ScriptCustomElementDefinitionBuilder* stack_; |
| 48 | 49 |
| 49 ScriptCustomElementDefinitionBuilder* prev_; | 50 ScriptCustomElementDefinitionBuilder* prev_; |
| 50 RefPtr<ScriptState> script_state_; | 51 RefPtr<ScriptState> script_state_; |
| 51 Member<CustomElementRegistry> registry_; | 52 Member<CustomElementRegistry> registry_; |
| 52 v8::Local<v8::Value> constructor_value_; | 53 v8::Local<v8::Value> constructor_value_; |
| 53 v8::Local<v8::Object> constructor_; | 54 v8::Local<v8::Object> constructor_; |
| 54 v8::Local<v8::Object> prototype_; | 55 v8::Local<v8::Object> prototype_; |
| 55 v8::Local<v8::Function> connected_callback_; | 56 v8::Local<v8::Function> connected_callback_; |
| 56 v8::Local<v8::Function> disconnected_callback_; | 57 v8::Local<v8::Function> disconnected_callback_; |
| 57 v8::Local<v8::Function> adopted_callback_; | 58 v8::Local<v8::Function> adopted_callback_; |
| 58 v8::Local<v8::Function> attribute_changed_callback_; | 59 v8::Local<v8::Function> attribute_changed_callback_; |
| 59 HashSet<AtomicString> observed_attributes_; | 60 HashSet<AtomicString> observed_attributes_; |
| 60 ExceptionState& exception_state_; | 61 ExceptionState& exception_state_; |
| 61 | 62 |
| 62 bool ValueForName(const v8::Local<v8::Object>&, | 63 bool ValueForName(const v8::Local<v8::Object>&, |
| 63 const StringView&, | 64 const StringView&, |
| 64 v8::Local<v8::Value>&) const; | 65 v8::Local<v8::Value>&) const; |
| 65 bool CallableForName(const StringView&, v8::Local<v8::Function>&) const; | 66 bool CallableForName(const StringView&, v8::Local<v8::Function>&) const; |
| 66 bool RetrieveObservedAttributes(); | 67 bool RetrieveObservedAttributes(); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace blink | 70 } // namespace blink |
| 70 | 71 |
| 71 #endif // ScriptCustomElementDefinitionBuilder_h | 72 #endif // ScriptCustomElementDefinitionBuilder_h |
| OLD | NEW |