| 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, V8TestInterfaceConstructor::installConditionallyEnabledMethods, V8T
estInterfaceConstructor::installConditionallyEnabledProperties, 0, WrapperTypeIn
fo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo:
:NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCo
untedObject }; | 27 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe
dderBlink, V8TestInterfaceConstructor::domTemplate, V8TestInterfaceConstructor::
refObject, V8TestInterfaceConstructor::derefObject, V8TestInterfaceConstructor::
trace, 0, 0, V8TestInterfaceConstructor::installConditionallyEnabledMethods, V8T
estInterfaceConstructor::installConditionallyEnabledProperties, "TestInterfaceCo
nstructor", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::Obj
ectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Indepen
dent, WrapperTypeInfo::RefCountedObject }; |
| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 229 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 230 exceptionState.throwIfNeeded(); | 230 exceptionState.throwIfNeeded(); |
| 231 return; | 231 return; |
| 232 } | 232 } |
| 233 exceptionState.throwTypeError("No matching constructor signature."); | 233 exceptionState.throwTypeError("No matching constructor signature."); |
| 234 exceptionState.throwIfNeeded(); | 234 exceptionState.throwIfNeeded(); |
| 235 } | 235 } |
| 236 | 236 |
| 237 } // namespace TestInterfaceConstructorV8Internal | 237 } // namespace TestInterfaceConstructorV8Internal |
| 238 | 238 |
| 239 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 }; | 239 const WrapperTypeInfo V8TestInterfaceConstructorConstructor::wrapperTypeInfo = {
gin::kEmbedderBlink, V8TestInterfaceConstructorConstructor::domTemplate, V8Test
InterfaceConstructor::refObject, V8TestInterfaceConstructor::derefObject, V8Test
InterfaceConstructor::trace, 0, 0, V8TestInterfaceConstructor::installConditiona
llyEnabledMethods, V8TestInterfaceConstructor::installConditionallyEnabledProper
ties, "TestInterfaceConstructor", 0, WrapperTypeInfo::WrapperTypeObjectPrototype
, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, Wr
apperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; |
| 240 | 240 |
| 241 static void V8TestInterfaceConstructorConstructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 241 static void V8TestInterfaceConstructorConstructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 242 { | 242 { |
| 243 if (!info.IsConstructCall()) { | 243 if (!info.IsConstructCall()) { |
| 244 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("Audio")); | 244 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("Audio")); |
| 245 return; | 245 return; |
| 246 } | 246 } |
| 247 | 247 |
| 248 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { | 248 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { |
| 249 v8SetReturnValue(info, info.Holder()); | 249 v8SetReturnValue(info, info.Holder()); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 { | 371 { |
| 372 scriptWrappable->toImpl<TestInterfaceConstructor>()->ref(); | 372 scriptWrappable->toImpl<TestInterfaceConstructor>()->ref(); |
| 373 } | 373 } |
| 374 | 374 |
| 375 void V8TestInterfaceConstructor::derefObject(ScriptWrappable* scriptWrappable) | 375 void V8TestInterfaceConstructor::derefObject(ScriptWrappable* scriptWrappable) |
| 376 { | 376 { |
| 377 scriptWrappable->toImpl<TestInterfaceConstructor>()->deref(); | 377 scriptWrappable->toImpl<TestInterfaceConstructor>()->deref(); |
| 378 } | 378 } |
| 379 | 379 |
| 380 } // namespace blink | 380 } // namespace blink |
| OLD | NEW |