| 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 "V8TestInterfaceNamedConstructor.h" | 8 #include "V8TestInterfaceNamedConstructor.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 static void testNamedConstructorConstructorAttributeAttributeSetterCallback(v8::
Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) | 62 static void testNamedConstructorConstructorAttributeAttributeSetterCallback(v8::
Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) |
| 63 { | 63 { |
| 64 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 64 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 65 TestInterfaceNamedConstructorV8Internal::testNamedConstructorConstructorAttr
ibuteAttributeSetter(v8Value, info); | 65 TestInterfaceNamedConstructorV8Internal::testNamedConstructorConstructorAttr
ibuteAttributeSetter(v8Value, info); |
| 66 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 66 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 67 } | 67 } |
| 68 | 68 |
| 69 } // namespace TestInterfaceNamedConstructorV8Internal | 69 } // namespace TestInterfaceNamedConstructorV8Internal |
| 70 | 70 |
| 71 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceNamedCons
tructorAttributes[] = { | 71 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceNamedCons
tructorAttributes[] = { |
| 72 {"testNamedConstructorConstructorAttribute", v8ConstructorAttributeGetter, T
estInterfaceNamedConstructorV8Internal::testNamedConstructorConstructorAttribute
AttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestNamedConstruc
tor::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<
v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnInstance}, | 72 {"testNamedConstructorConstructorAttribute", v8ConstructorAttributeGetter, T
estInterfaceNamedConstructorV8Internal::testNamedConstructorConstructorAttribute
AttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestNamedConstruc
tor::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<
v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder}, |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 const WrapperTypeInfo V8TestInterfaceNamedConstructorConstructor::wrapperTypeInf
o = { gin::kEmbedderBlink, V8TestInterfaceNamedConstructorConstructor::domTempla
te, V8TestInterfaceNamedConstructor::refObject, V8TestInterfaceNamedConstructor:
:derefObject, V8TestInterfaceNamedConstructor::trace, V8TestInterfaceNamedConstr
uctor::toActiveDOMObject, 0, V8TestInterfaceNamedConstructor::preparePrototypeOb
ject, V8TestInterfaceNamedConstructor::installConditionallyEnabledProperties, "T
estInterfaceNamedConstructor", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, W
rapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, Wrapp
erTypeInfo::Dependent, WrapperTypeInfo::RefCountedObject }; | 75 const WrapperTypeInfo V8TestInterfaceNamedConstructorConstructor::wrapperTypeInf
o = { gin::kEmbedderBlink, V8TestInterfaceNamedConstructorConstructor::domTempla
te, V8TestInterfaceNamedConstructor::refObject, V8TestInterfaceNamedConstructor:
:derefObject, V8TestInterfaceNamedConstructor::trace, V8TestInterfaceNamedConstr
uctor::toActiveDOMObject, 0, V8TestInterfaceNamedConstructor::preparePrototypeOb
ject, V8TestInterfaceNamedConstructor::installConditionallyEnabledProperties, "T
estInterfaceNamedConstructor", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, W
rapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, Wrapp
erTypeInfo::Dependent, WrapperTypeInfo::RefCountedObject }; |
| 76 | 76 |
| 77 static void V8TestInterfaceNamedConstructorConstructorCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 77 static void V8TestInterfaceNamedConstructorConstructorCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 78 { | 78 { |
| 79 if (!info.IsConstructCall()) { | 79 if (!info.IsConstructCall()) { |
| 80 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("Audio")); | 80 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("Audio")); |
| 81 return; | 81 return; |
| 82 } | 82 } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 { | 209 { |
| 210 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref(); | 210 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref(); |
| 211 } | 211 } |
| 212 | 212 |
| 213 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab
le) | 213 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab
le) |
| 214 { | 214 { |
| 215 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); | 215 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 } // namespace blink | 218 } // namespace blink |
| OLD | NEW |