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 ScriptCustomElementDefinition_h | 5 #ifndef ScriptCustomElementDefinition_h |
6 #define ScriptCustomElementDefinition_h | 6 #define ScriptCustomElementDefinition_h |
7 | 7 |
8 #include "bindings/core/v8/ScopedPersistent.h" | 8 #include "bindings/core/v8/ScopedPersistent.h" |
9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
10 #include "core/dom/custom/CustomElementDefinition.h" | 10 #include "core/dom/custom/CustomElementDefinition.h" |
(...skipping 27 matching lines...) Expand all Loading... | |
38 v8::Local<v8::Object> constructor(ScriptState*) const; | 38 v8::Local<v8::Object> constructor(ScriptState*) const; |
39 v8::Local<v8::Object> prototype(ScriptState*) const; | 39 v8::Local<v8::Object> prototype(ScriptState*) const; |
40 | 40 |
41 private: | 41 private: |
42 ScriptCustomElementDefinition( | 42 ScriptCustomElementDefinition( |
43 ScriptState*, | 43 ScriptState*, |
44 const CustomElementDescriptor&, | 44 const CustomElementDescriptor&, |
45 const v8::Local<v8::Object>& constructor, | 45 const v8::Local<v8::Object>& constructor, |
46 const v8::Local<v8::Object>& prototype); | 46 const v8::Local<v8::Object>& prototype); |
47 | 47 |
48 // Implementations of |CustomElementDefinition| | |
49 ScriptValue getConstructor(ScriptState*) final; | |
dominicc (has gone to gerrit)
2016/05/31 06:01:50
Because ScriptCustomElementDefinition will need to
yosin_UTC9
2016/05/31 09:16:57
We should have |ScriptState*| here to verify we us
| |
50 | |
48 ScopedPersistent<v8::Object> m_constructor; | 51 ScopedPersistent<v8::Object> m_constructor; |
49 ScopedPersistent<v8::Object> m_prototype; | 52 ScopedPersistent<v8::Object> m_prototype; |
50 }; | 53 }; |
51 | 54 |
52 } // namespace blink | 55 } // namespace blink |
53 | 56 |
54 #endif // ScriptCustomElementDefinition_h | 57 #endif // ScriptCustomElementDefinition_h |
OLD | NEW |