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 "V8TestInterfaceEventInitConstructor.h" | 8 #include "V8TestInterfaceEventInitConstructor.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 return; | 91 return; |
92 } | 92 } |
93 RefPtrWillBeRawPtr<TestInterfaceEventInitConstructor> impl = TestInterfaceEv
entInitConstructor::create(type, testInterfaceEventInit); | 93 RefPtrWillBeRawPtr<TestInterfaceEventInitConstructor> impl = TestInterfaceEv
entInitConstructor::create(type, testInterfaceEventInit); |
94 v8::Local<v8::Object> wrapper = info.Holder(); | 94 v8::Local<v8::Object> wrapper = info.Holder(); |
95 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEven
tInitConstructor::wrapperTypeInfo, wrapper); | 95 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEven
tInitConstructor::wrapperTypeInfo, wrapper); |
96 v8SetReturnValue(info, wrapper); | 96 v8SetReturnValue(info, wrapper); |
97 } | 97 } |
98 | 98 |
99 } // namespace TestInterfaceEventInitConstructorV8Internal | 99 } // namespace TestInterfaceEventInitConstructorV8Internal |
100 | 100 |
101 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceEventInitC
onstructorAccessors[] = { | 101 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceEventInitConstruc
torAccessors[] = { |
102 {"readonlyStringAttribute", TestInterfaceEventInitConstructorV8Internal::rea
donlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cas
t<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8D
OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 102 {"readonlyStringAttribute", TestInterfaceEventInitConstructorV8Internal::rea
donlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cas
t<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8D
OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
103 }; | 103 }; |
104 | 104 |
105 void V8TestInterfaceEventInitConstructor::constructorCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 105 void V8TestInterfaceEventInitConstructor::constructorCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
106 { | 106 { |
107 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); | 107 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); |
108 if (!info.IsConstructCall()) { | 108 if (!info.IsConstructCall()) { |
109 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("TestInterfaceEventInitConstructor")); | 109 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("TestInterfaceEventInitConstructor")); |
110 return; | 110 return; |
111 } | 111 } |
(...skipping 15 matching lines...) Expand all Loading... |
127 0, 0, | 127 0, 0, |
128 V8TestInterfaceEventInitConstructorAccessors, WTF_ARRAY_LENGTH(V8TestInt
erfaceEventInitConstructorAccessors), | 128 V8TestInterfaceEventInitConstructorAccessors, WTF_ARRAY_LENGTH(V8TestInt
erfaceEventInitConstructorAccessors), |
129 0, 0); | 129 0, 0); |
130 functionTemplate->SetCallHandler(V8TestInterfaceEventInitConstructor::constr
uctorCallback); | 130 functionTemplate->SetCallHandler(V8TestInterfaceEventInitConstructor::constr
uctorCallback); |
131 functionTemplate->SetLength(2); | 131 functionTemplate->SetLength(2); |
132 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 132 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
133 ALLOW_UNUSED_LOCAL(instanceTemplate); | 133 ALLOW_UNUSED_LOCAL(instanceTemplate); |
134 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 134 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
135 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 135 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
136 if (RuntimeEnabledFeatures::trustedEventsEnabled()) { | 136 if (RuntimeEnabledFeatures::trustedEventsEnabled()) { |
137 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 137 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
\ |
138 {"isTrusted", TestInterfaceEventInitConstructorV8Internal::isTrustedAttr
ibuteGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>
(v8::DontDelete), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O
nInstance, V8DOMConfiguration::CheckHolder}; | 138 {"isTrusted", TestInterfaceEventInitConstructorV8Internal::isTrustedAttr
ibuteGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>
(v8::DontDelete), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O
nInstance, V8DOMConfiguration::CheckHolder}; |
139 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 139 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
140 } | 140 } |
141 | 141 |
142 // Custom toString template | 142 // Custom toString template |
143 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 143 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
144 } | 144 } |
145 | 145 |
146 v8::Local<v8::FunctionTemplate> V8TestInterfaceEventInitConstructor::domTemplate
(v8::Isolate* isolate) | 146 v8::Local<v8::FunctionTemplate> V8TestInterfaceEventInitConstructor::domTemplate
(v8::Isolate* isolate) |
147 { | 147 { |
(...skipping 23 matching lines...) Expand all Loading... |
171 } | 171 } |
172 | 172 |
173 void V8TestInterfaceEventInitConstructor::derefObject(ScriptWrappable* scriptWra
ppable) | 173 void V8TestInterfaceEventInitConstructor::derefObject(ScriptWrappable* scriptWra
ppable) |
174 { | 174 { |
175 #if !ENABLE(OILPAN) | 175 #if !ENABLE(OILPAN) |
176 scriptWrappable->toImpl<TestInterfaceEventInitConstructor>()->deref(); | 176 scriptWrappable->toImpl<TestInterfaceEventInitConstructor>()->deref(); |
177 #endif | 177 #endif |
178 } | 178 } |
179 | 179 |
180 } // namespace blink | 180 } // namespace blink |
OLD | NEW |