Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 27 public: | 27 public: |
| 28 ScriptCustomElementDefinitionBuilder( | 28 ScriptCustomElementDefinitionBuilder( |
| 29 ScriptState*, | 29 ScriptState*, |
| 30 CustomElementsRegistry*, | 30 CustomElementsRegistry*, |
| 31 const ScriptValue& constructorScriptValue, | 31 const ScriptValue& constructorScriptValue, |
| 32 ExceptionState&); | 32 ExceptionState&); |
| 33 | 33 |
| 34 bool checkConstructorIntrinsics() override; | 34 bool checkConstructorIntrinsics() override; |
| 35 bool checkConstructorNotRegistered() override; | 35 bool checkConstructorNotRegistered() override; |
| 36 bool checkPrototype() override; | 36 bool checkPrototype() override; |
| 37 bool cacheProperties() override; | |
| 37 CustomElementDefinition* build(const CustomElementDescriptor&) override; | 38 CustomElementDefinition* build(const CustomElementDescriptor&) override; |
| 38 | 39 |
| 39 private: | 40 private: |
| 41 friend class ScriptCustomElementDefinition; | |
|
dominicc (has gone to gerrit)
2016/06/02 00:31:27
I don't really like the ScriptCustomElementDefinit
yosin_UTC9
2016/06/02 01:33:38
When const-ish isn't important in |ScriptCusomElem
kojii
2016/06/02 03:18:08
Reverted.
| |
| 42 | |
| 40 RefPtr<ScriptState> m_scriptState; | 43 RefPtr<ScriptState> m_scriptState; |
| 41 Member<CustomElementsRegistry> m_registry; | 44 Member<CustomElementsRegistry> m_registry; |
| 42 v8::Local<v8::Value> m_constructorValue; | 45 v8::Local<v8::Value> m_constructorValue; |
| 43 v8::Local<v8::Object> m_constructor; | 46 v8::Local<v8::Object> m_constructor; |
| 44 v8::Local<v8::Object> m_prototype; | 47 v8::Local<v8::Object> m_prototype; |
| 48 v8::Local<v8::Object> m_connectedCallback; | |
| 49 v8::Local<v8::Object> m_disconnectedCallback; | |
| 50 v8::Local<v8::Object> m_attributeChangedCallback; | |
| 51 Vector<AtomicString> m_observedAttributes; | |
|
dominicc (has gone to gerrit)
2016/06/02 00:31:27
Any reason not to just make this a HashSet and mov
kojii
2016/06/02 03:18:08
Done. Not really, had a micro-optimization in mind
| |
| 45 ExceptionState& m_exceptionState; | 52 ExceptionState& m_exceptionState; |
| 53 | |
| 54 bool getValue(const v8::Local<v8::Object>&, const char*, | |
|
yosin_UTC9
2016/06/02 01:33:38
Term "get" is so usual, we should use another name
| |
| 55 v8::Local<v8::Value>&) const; | |
| 56 bool getCallable(const char*, v8::Local<v8::Object>&) const; | |
|
yosin_UTC9
2016/06/02 01:33:38
In Blink, getter doesn't have "get", but in other
kojii
2016/06/02 03:18:08
Done, thought "get" is chromium style but I don't
| |
| 46 }; | 57 }; |
| 47 | 58 |
| 48 } // namespace blink | 59 } // namespace blink |
| 49 | 60 |
| 50 #endif // ScriptCustomElementDefinitionBuilder_h | 61 #endif // ScriptCustomElementDefinitionBuilder_h |
| OLD | NEW |