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 #include "bindings/core/v8/ScriptCustomElementDefinition.h" | 5 #include "bindings/core/v8/ScriptCustomElementDefinition.h" |
6 | 6 |
7 #include "bindings/core/v8/ScriptState.h" | 7 #include "bindings/core/v8/ScriptState.h" |
8 #include "bindings/core/v8/V8Binding.h" | 8 #include "bindings/core/v8/V8Binding.h" |
9 #include "bindings/core/v8/V8CustomElementsRegistry.h" | 9 #include "bindings/core/v8/V8CustomElementsRegistry.h" |
10 #include "bindings/core/v8/V8HiddenValue.h" | 10 #include "bindings/core/v8/V8HiddenValue.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 return m_constructor.newLocal(scriptState->isolate()); | 126 return m_constructor.newLocal(scriptState->isolate()); |
127 } | 127 } |
128 | 128 |
129 v8::Local<v8::Object> ScriptCustomElementDefinition::prototype( | 129 v8::Local<v8::Object> ScriptCustomElementDefinition::prototype( |
130 ScriptState* scriptState) const | 130 ScriptState* scriptState) const |
131 { | 131 { |
132 DCHECK(!m_prototype.isEmpty()); | 132 DCHECK(!m_prototype.isEmpty()); |
133 return m_prototype.newLocal(scriptState->isolate()); | 133 return m_prototype.newLocal(scriptState->isolate()); |
134 } | 134 } |
135 | 135 |
| 136 // CustomElementDefinition |
| 137 ScriptValue ScriptCustomElementDefinition::getConstructor( |
| 138 ScriptState* scriptState) |
| 139 { |
| 140 return ScriptValue(scriptState, constructor(scriptState)); |
| 141 } |
| 142 |
136 } // namespace blink | 143 } // namespace blink |
OLD | NEW |