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 "V8TestInterfaceGarbageCollected.h" | 8 #include "V8TestInterfaceGarbageCollected.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
11 #include "bindings/core/v8/ScriptState.h" | |
12 #include "bindings/core/v8/ScriptValue.h" | |
11 #include "bindings/core/v8/V8DOMConfiguration.h" | 13 #include "bindings/core/v8/V8DOMConfiguration.h" |
12 #include "bindings/core/v8/V8HiddenValue.h" | 14 #include "bindings/core/v8/V8HiddenValue.h" |
15 #include "bindings/core/v8/V8Iterator.h" | |
13 #include "bindings/core/v8/V8ObjectConstructor.h" | 16 #include "bindings/core/v8/V8ObjectConstructor.h" |
14 #include "bindings/core/v8/V8TestInterfaceGarbageCollected.h" | 17 #include "bindings/core/v8/V8TestInterfaceGarbageCollected.h" |
15 #include "core/dom/ContextFeatures.h" | 18 #include "core/dom/ContextFeatures.h" |
16 #include "core/dom/Document.h" | 19 #include "core/dom/Document.h" |
17 #include "core/frame/LocalDOMWindow.h" | 20 #include "core/frame/LocalDOMWindow.h" |
18 #include "platform/RuntimeEnabledFeatures.h" | 21 #include "platform/RuntimeEnabledFeatures.h" |
19 #include "platform/TraceEvent.h" | 22 #include "platform/TraceEvent.h" |
20 #include "wtf/GetPtr.h" | 23 #include "wtf/GetPtr.h" |
21 #include "wtf/RefPtr.h" | 24 #include "wtf/RefPtr.h" |
22 | 25 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 impl->func(arg); | 77 impl->func(arg); |
75 } | 78 } |
76 | 79 |
77 static void funcMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 80 static void funcMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
78 { | 81 { |
79 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 82 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
80 TestInterfaceGarbageCollectedV8Internal::funcMethod(info); | 83 TestInterfaceGarbageCollectedV8Internal::funcMethod(info); |
81 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 84 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
82 } | 85 } |
83 | 86 |
87 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | |
88 { | |
89 ExceptionState exceptionState(ExceptionState::ExecutionContext, "keys", "Tes tInterfaceGarbageCollected", info.Holder(), info.GetIsolate()); | |
90 TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImp l(info.Holder()); | |
91 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | |
92 RawPtr<Iterator> result = impl->keys(scriptState, exceptionState); | |
93 if (exceptionState.hadException()) { | |
94 exceptionState.throwIfNeeded(); | |
95 return; | |
96 } | |
97 v8SetReturnValue(info, result.release()); | |
98 } | |
99 | |
100 static void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | |
101 { | |
102 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
103 TestInterfaceGarbageCollectedV8Internal::keysMethod(info); | |
104 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
105 } | |
106 | |
107 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | |
108 { | |
109 ExceptionState exceptionState(ExceptionState::ExecutionContext, "values", "T estInterfaceGarbageCollected", info.Holder(), info.GetIsolate()); | |
110 TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImp l(info.Holder()); | |
111 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | |
112 RawPtr<Iterator> result = impl->values(scriptState, exceptionState); | |
113 if (exceptionState.hadException()) { | |
114 exceptionState.throwIfNeeded(); | |
115 return; | |
116 } | |
117 v8SetReturnValue(info, result.release()); | |
118 } | |
119 | |
120 static void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info ) | |
121 { | |
122 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
123 TestInterfaceGarbageCollectedV8Internal::valuesMethod(info); | |
124 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
125 } | |
126 | |
127 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | |
128 { | |
129 ExceptionState exceptionState(ExceptionState::ExecutionContext, "entries", " TestInterfaceGarbageCollected", info.Holder(), info.GetIsolate()); | |
130 TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImp l(info.Holder()); | |
131 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | |
132 RawPtr<Iterator> result = impl->entries(scriptState, exceptionState); | |
133 if (exceptionState.hadException()) { | |
134 exceptionState.throwIfNeeded(); | |
135 return; | |
136 } | |
137 v8SetReturnValue(info, result.release()); | |
138 } | |
139 | |
140 static void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf o) | |
141 { | |
142 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
143 TestInterfaceGarbageCollectedV8Internal::entriesMethod(info); | |
144 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
145 } | |
146 | |
147 static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | |
148 { | |
149 ExceptionState exceptionState(ExceptionState::ExecutionContext, "forEach", " TestInterfaceGarbageCollected", info.Holder(), info.GetIsolate()); | |
150 if (UNLIKELY(info.Length() < 1)) { | |
151 setMinimumArityTypeError(exceptionState, 1, info.Length()); | |
152 exceptionState.throwIfNeeded(); | |
153 return; | |
154 } | |
155 TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImp l(info.Holder()); | |
156 ScriptValue callback; | |
157 ScriptValue thisArg; | |
158 { | |
159 if (!info[0]->IsFunction()) { | |
160 exceptionState.throwTypeError("The callback provided as parameter 1 is not a function."); | |
161 exceptionState.throwIfNeeded(); | |
162 return; | |
163 } | |
164 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]) ; | |
165 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); | |
166 } | |
167 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | |
168 impl->forEach(scriptState, ScriptValue(scriptState, info.This()), callback, thisArg, exceptionState); | |
169 if (exceptionState.hadException()) { | |
170 exceptionState.throwIfNeeded(); | |
171 return; | |
172 } | |
173 } | |
174 | |
175 static void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf o) | |
176 { | |
177 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
178 TestInterfaceGarbageCollectedV8Internal::forEachMethod(info); | |
179 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
180 } | |
181 | |
182 static void hasMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | |
183 { | |
184 ExceptionState exceptionState(ExceptionState::ExecutionContext, "has", "Test InterfaceGarbageCollected", info.Holder(), info.GetIsolate()); | |
185 if (UNLIKELY(info.Length() < 1)) { | |
186 setMinimumArityTypeError(exceptionState, 1, info.Length()); | |
187 exceptionState.throwIfNeeded(); | |
188 return; | |
189 } | |
190 TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImp l(info.Holder()); | |
191 V8StringResource<> value; | |
192 { | |
193 TOSTRING_VOID_INTERNAL(value, info[0]); | |
194 } | |
195 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | |
196 bool result = impl->has(scriptState, value, exceptionState); | |
197 if (exceptionState.hadException()) { | |
198 exceptionState.throwIfNeeded(); | |
199 return; | |
200 } | |
201 v8SetReturnValueBool(info, result); | |
202 } | |
203 | |
204 static void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | |
205 { | |
206 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
207 TestInterfaceGarbageCollectedV8Internal::hasMethod(info); | |
208 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
209 } | |
210 | |
211 static void addMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | |
212 { | |
213 ExceptionState exceptionState(ExceptionState::ExecutionContext, "add", "Test InterfaceGarbageCollected", info.Holder(), info.GetIsolate()); | |
214 if (UNLIKELY(info.Length() < 1)) { | |
215 setMinimumArityTypeError(exceptionState, 1, info.Length()); | |
216 exceptionState.throwIfNeeded(); | |
217 return; | |
218 } | |
219 TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImp l(info.Holder()); | |
220 V8StringResource<> value; | |
221 { | |
222 TOSTRING_VOID_INTERNAL(value, info[0]); | |
223 } | |
224 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | |
225 RawPtr<TestInterfaceGarbageCollected> result = impl->add(scriptState, value, exceptionState); | |
Jens Widell
2015/02/09 12:29:19
A somewhat appealing alternative would be to imple
haraken
2015/02/09 13:53:11
Good point, shall we file a bug against the spec?
Jens Widell
2015/02/09 15:03:05
Yes, I will look into it. Last time I looked at th
| |
226 if (exceptionState.hadException()) { | |
227 exceptionState.throwIfNeeded(); | |
228 return; | |
229 } | |
230 v8SetReturnValue(info, result.release()); | |
231 } | |
232 | |
233 static void addMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | |
234 { | |
235 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
236 TestInterfaceGarbageCollectedV8Internal::addMethod(info); | |
237 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
238 } | |
239 | |
240 static void clearMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | |
241 { | |
242 ExceptionState exceptionState(ExceptionState::ExecutionContext, "clear", "Te stInterfaceGarbageCollected", info.Holder(), info.GetIsolate()); | |
243 TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImp l(info.Holder()); | |
244 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | |
245 impl->clear(scriptState, exceptionState); | |
246 if (exceptionState.hadException()) { | |
247 exceptionState.throwIfNeeded(); | |
248 return; | |
249 } | |
250 } | |
251 | |
252 static void clearMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | |
253 { | |
254 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
255 TestInterfaceGarbageCollectedV8Internal::clearMethod(info); | |
256 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
257 } | |
258 | |
259 static void deleteMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | |
260 { | |
261 ExceptionState exceptionState(ExceptionState::ExecutionContext, "delete", "T estInterfaceGarbageCollected", info.Holder(), info.GetIsolate()); | |
262 if (UNLIKELY(info.Length() < 1)) { | |
263 setMinimumArityTypeError(exceptionState, 1, info.Length()); | |
264 exceptionState.throwIfNeeded(); | |
265 return; | |
266 } | |
267 TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImp l(info.Holder()); | |
268 V8StringResource<> value; | |
269 { | |
270 TOSTRING_VOID_INTERNAL(value, info[0]); | |
271 } | |
272 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | |
273 bool result = impl->delete(scriptState, value, exceptionState); | |
Jens Widell
2015/02/09 15:03:05
It occurs to me that "delete" is not a good functi
haraken
2015/02/09 15:53:53
We normally use deleteForBinding or deleteFunction
Jens Widell
2015/02/09 15:56:48
Changed to "deleteForBinding".
| |
274 if (exceptionState.hadException()) { | |
275 exceptionState.throwIfNeeded(); | |
276 return; | |
277 } | |
278 v8SetReturnValueBool(info, result); | |
279 } | |
280 | |
281 static void deleteMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info ) | |
282 { | |
283 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
284 TestInterfaceGarbageCollectedV8Internal::deleteMethod(info); | |
285 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
286 } | |
287 | |
288 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | |
289 { | |
290 ExceptionState exceptionState(ExceptionState::ExecutionContext, "iterator", "TestInterfaceGarbageCollected", info.Holder(), info.GetIsolate()); | |
291 TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImp l(info.Holder()); | |
292 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | |
293 RawPtr<Iterator> result = impl->iterator(scriptState, exceptionState); | |
294 if (exceptionState.hadException()) { | |
295 exceptionState.throwIfNeeded(); | |
296 return; | |
297 } | |
298 v8SetReturnValue(info, result.release()); | |
299 } | |
300 | |
301 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) | |
302 { | |
303 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
304 TestInterfaceGarbageCollectedV8Internal::iteratorMethod(info); | |
305 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
306 } | |
307 | |
84 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 308 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
85 { | 309 { |
86 if (UNLIKELY(info.Length() < 1)) { | 310 if (UNLIKELY(info.Length() < 1)) { |
87 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or(info.GetIsolate(), "TestInterfaceGarbageCollected", 1, info.Length()), info.G etIsolate()); | 311 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or(info.GetIsolate(), "TestInterfaceGarbageCollected", 1, info.Length()), info.G etIsolate()); |
88 return; | 312 return; |
89 } | 313 } |
90 V8StringResource<> str; | 314 V8StringResource<> str; |
91 { | 315 { |
92 TOSTRING_VOID_INTERNAL(str, info[0]); | 316 TOSTRING_VOID_INTERNAL(str, info[0]); |
93 } | 317 } |
94 RawPtr<TestInterfaceGarbageCollected> impl = TestInterfaceGarbageCollected:: create(str); | 318 RawPtr<TestInterfaceGarbageCollected> impl = TestInterfaceGarbageCollected:: create(str); |
95 v8::Local<v8::Object> wrapper = info.Holder(); | 319 v8::Local<v8::Object> wrapper = info.Holder(); |
96 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceGarbageCollect ed::wrapperTypeInfo, wrapper); | 320 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceGarbageCollect ed::wrapperTypeInfo, wrapper); |
97 v8SetReturnValue(info, wrapper); | 321 v8SetReturnValue(info, wrapper); |
98 } | 322 } |
99 | 323 |
100 } // namespace TestInterfaceGarbageCollectedV8Internal | 324 } // namespace TestInterfaceGarbageCollectedV8Internal |
101 | 325 |
102 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceGarbageCo llectedAttributes[] = { | 326 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceGarbageCo llectedAttributes[] = { |
103 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0 , 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnI nstance}, | 327 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0 , 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnI nstance}, |
104 }; | 328 }; |
105 | 329 |
106 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageColle ctedMethods[] = { | 330 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageColle ctedMethods[] = { |
107 {"func", TestInterfaceGarbageCollectedV8Internal::funcMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 331 {"func", TestInterfaceGarbageCollectedV8Internal::funcMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
332 {"keys", TestInterfaceGarbageCollectedV8Internal::keysMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | |
333 {"values", TestInterfaceGarbageCollectedV8Internal::valuesMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | |
334 {"entries", TestInterfaceGarbageCollectedV8Internal::entriesMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | |
335 {"forEach", TestInterfaceGarbageCollectedV8Internal::forEachMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | |
336 {"has", TestInterfaceGarbageCollectedV8Internal::hasMethodCallback, 0, 1, V8 DOMConfiguration::ExposedToAllScripts}, | |
337 {"add", TestInterfaceGarbageCollectedV8Internal::addMethodCallback, 0, 1, V8 DOMConfiguration::ExposedToAllScripts}, | |
338 {"clear", TestInterfaceGarbageCollectedV8Internal::clearMethodCallback, 0, 0 , V8DOMConfiguration::ExposedToAllScripts}, | |
339 {"delete", TestInterfaceGarbageCollectedV8Internal::deleteMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | |
108 }; | 340 }; |
109 | 341 |
110 void V8TestInterfaceGarbageCollected::constructorCallback(const v8::FunctionCall backInfo<v8::Value>& info) | 342 void V8TestInterfaceGarbageCollected::constructorCallback(const v8::FunctionCall backInfo<v8::Value>& info) |
111 { | 343 { |
112 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); | 344 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); |
113 if (!info.IsConstructCall()) { | 345 if (!info.IsConstructCall()) { |
114 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestInterfaceGarbageCollected")); | 346 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestInterfaceGarbageCollected")); |
115 return; | 347 return; |
116 } | 348 } |
117 | 349 |
(...skipping 13 matching lines...) Expand all Loading... | |
131 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestInterfaceGarbageCollected", V8EventTarget::domTemplate(isolat e), V8TestInterfaceGarbageCollected::internalFieldCount, | 363 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestInterfaceGarbageCollected", V8EventTarget::domTemplate(isolat e), V8TestInterfaceGarbageCollected::internalFieldCount, |
132 V8TestInterfaceGarbageCollectedAttributes, WTF_ARRAY_LENGTH(V8TestInterf aceGarbageCollectedAttributes), | 364 V8TestInterfaceGarbageCollectedAttributes, WTF_ARRAY_LENGTH(V8TestInterf aceGarbageCollectedAttributes), |
133 0, 0, | 365 0, 0, |
134 V8TestInterfaceGarbageCollectedMethods, WTF_ARRAY_LENGTH(V8TestInterface GarbageCollectedMethods)); | 366 V8TestInterfaceGarbageCollectedMethods, WTF_ARRAY_LENGTH(V8TestInterface GarbageCollectedMethods)); |
135 functionTemplate->SetCallHandler(V8TestInterfaceGarbageCollected::constructo rCallback); | 367 functionTemplate->SetCallHandler(V8TestInterfaceGarbageCollected::constructo rCallback); |
136 functionTemplate->SetLength(1); | 368 functionTemplate->SetLength(1); |
137 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); | 369 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); |
138 ALLOW_UNUSED_LOCAL(instanceTemplate); | 370 ALLOW_UNUSED_LOCAL(instanceTemplate); |
139 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); | 371 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); |
140 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 372 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
373 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI teratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceGarbageCollectedV 8Internal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; | |
374 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D ontDelete, symbolKeyedIteratorConfiguration, isolate); | |
141 | 375 |
142 // Custom toString template | 376 // Custom toString template |
143 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); | 377 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); |
144 } | 378 } |
145 | 379 |
146 v8::Local<v8::FunctionTemplate> V8TestInterfaceGarbageCollected::domTemplate(v8: :Isolate* isolate) | 380 v8::Local<v8::FunctionTemplate> V8TestInterfaceGarbageCollected::domTemplate(v8: :Isolate* isolate) |
147 { | 381 { |
148 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterfaceGarbageCollectedTemplate); | 382 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterfaceGarbageCollectedTemplate); |
149 } | 383 } |
150 | 384 |
(...skipping 14 matching lines...) Expand all Loading... | |
165 | 399 |
166 void V8TestInterfaceGarbageCollected::refObject(ScriptWrappable* scriptWrappable ) | 400 void V8TestInterfaceGarbageCollected::refObject(ScriptWrappable* scriptWrappable ) |
167 { | 401 { |
168 } | 402 } |
169 | 403 |
170 void V8TestInterfaceGarbageCollected::derefObject(ScriptWrappable* scriptWrappab le) | 404 void V8TestInterfaceGarbageCollected::derefObject(ScriptWrappable* scriptWrappab le) |
171 { | 405 { |
172 } | 406 } |
173 | 407 |
174 } // namespace blink | 408 } // namespace blink |
OLD | NEW |