OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #include "V8TestInterfaceConstructor.h" | 8 #include "V8TestInterfaceConstructor.h" |
9 | 9 |
10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
11 #include "bindings/core/v8/ExceptionState.h" | 11 #include "bindings/core/v8/ExceptionState.h" |
12 #include "bindings/core/v8/V8DOMConfiguration.h" | 12 #include "bindings/core/v8/V8DOMConfiguration.h" |
13 #include "bindings/core/v8/V8HiddenValue.h" | 13 #include "bindings/core/v8/V8HiddenValue.h" |
14 #include "bindings/core/v8/V8ObjectConstructor.h" | 14 #include "bindings/core/v8/V8ObjectConstructor.h" |
15 #include "bindings/core/v8/V8TestInterfaceEmpty.h" | 15 #include "bindings/core/v8/V8TestInterfaceEmpty.h" |
16 #include "core/dom/ContextFeatures.h" | 16 #include "core/dom/ContextFeatures.h" |
17 #include "core/dom/Document.h" | 17 #include "core/dom/Document.h" |
18 #include "core/frame/LocalDOMWindow.h" | 18 #include "core/frame/LocalDOMWindow.h" |
19 #include "core/frame/UseCounter.h" | 19 #include "core/frame/UseCounter.h" |
20 #include "platform/RuntimeEnabledFeatures.h" | 20 #include "platform/RuntimeEnabledFeatures.h" |
21 #include "platform/TraceEvent.h" | 21 #include "platform/TraceEvent.h" |
22 #include "wtf/GetPtr.h" | 22 #include "wtf/GetPtr.h" |
23 #include "wtf/RefPtr.h" | 23 #include "wtf/RefPtr.h" |
24 | 24 |
25 namespace blink { | 25 namespace blink { |
26 | 26 |
27 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe
dderBlink, V8TestInterfaceConstructor::domTemplate, V8TestInterfaceConstructor::
refObject, V8TestInterfaceConstructor::derefObject, V8TestInterfaceConstructor::
trace, 0, 0, 0, V8TestInterfaceConstructor::installConditionallyEnabledMethods,
V8TestInterfaceConstructor::installConditionallyEnabledProperties, 0, WrapperTyp
eInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeIn
fo::Independent, WrapperTypeInfo::RefCountedObject }; | 27 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe
dderBlink, V8TestInterfaceConstructor::domTemplate, V8TestInterfaceConstructor::
refObject, V8TestInterfaceConstructor::derefObject, V8TestInterfaceConstructor::
trace, 0, 0, V8TestInterfaceConstructor::installConditionallyEnabledMethods, V8T
estInterfaceConstructor::installConditionallyEnabledProperties, 0, WrapperTypeIn
fo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo:
:NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCo
untedObject }; |
28 | 28 |
29 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eConstructor.h. | 29 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eConstructor.h. |
30 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 30 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
31 // bindings/core/v8/ScriptWrappable.h. | 31 // bindings/core/v8/ScriptWrappable.h. |
32 const WrapperTypeInfo& TestInterfaceConstructor::s_wrapperTypeInfo = V8TestInter
faceConstructor::wrapperTypeInfo; | 32 const WrapperTypeInfo& TestInterfaceConstructor::s_wrapperTypeInfo = V8TestInter
faceConstructor::wrapperTypeInfo; |
33 | 33 |
34 namespace TestInterfaceConstructorV8Internal { | 34 namespace TestInterfaceConstructorV8Internal { |
35 | 35 |
36 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) | 36 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) |
37 { | 37 { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 202 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
203 exceptionState.throwIfNeeded(); | 203 exceptionState.throwIfNeeded(); |
204 return; | 204 return; |
205 } | 205 } |
206 exceptionState.throwTypeError("No matching constructor signature."); | 206 exceptionState.throwTypeError("No matching constructor signature."); |
207 exceptionState.throwIfNeeded(); | 207 exceptionState.throwIfNeeded(); |
208 } | 208 } |
209 | 209 |
210 } // namespace TestInterfaceConstructorV8Internal | 210 } // namespace TestInterfaceConstructorV8Internal |
211 | 211 |
212 const WrapperTypeInfo V8TestInterfaceConstructorConstructor::wrapperTypeInfo = {
gin::kEmbedderBlink, V8TestInterfaceConstructorConstructor::domTemplate, V8Test
InterfaceConstructor::refObject, V8TestInterfaceConstructor::derefObject, V8Test
InterfaceConstructor::trace, 0, 0, 0, V8TestInterfaceConstructor::installConditi
onallyEnabledMethods, V8TestInterfaceConstructor::installConditionallyEnabledPro
perties, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::Object
ClassId, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; | 212 const WrapperTypeInfo V8TestInterfaceConstructorConstructor::wrapperTypeInfo = {
gin::kEmbedderBlink, V8TestInterfaceConstructorConstructor::domTemplate, V8Test
InterfaceConstructor::refObject, V8TestInterfaceConstructor::derefObject, V8Test
InterfaceConstructor::trace, 0, 0, V8TestInterfaceConstructor::installConditiona
llyEnabledMethods, V8TestInterfaceConstructor::installConditionallyEnabledProper
ties, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectCla
ssId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent,
WrapperTypeInfo::RefCountedObject }; |
213 | 213 |
214 static void V8TestInterfaceConstructorConstructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 214 static void V8TestInterfaceConstructorConstructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
215 { | 215 { |
216 if (!info.IsConstructCall()) { | 216 if (!info.IsConstructCall()) { |
217 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("Audio")); | 217 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("Audio")); |
218 return; | 218 return; |
219 } | 219 } |
220 | 220 |
221 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { | 221 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { |
222 v8SetReturnValue(info, info.Holder()); | 222 v8SetReturnValue(info, info.Holder()); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 scriptWrappableBase->toImpl<TestInterfaceConstructor>()->deref(); | 345 scriptWrappableBase->toImpl<TestInterfaceConstructor>()->deref(); |
346 } | 346 } |
347 | 347 |
348 template<> | 348 template<> |
349 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 349 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
350 { | 350 { |
351 return toV8(impl, creationContext, isolate); | 351 return toV8(impl, creationContext, isolate); |
352 } | 352 } |
353 | 353 |
354 } // namespace blink | 354 } // namespace blink |
OLD | NEW |