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 // clang-format off | 7 // clang-format off |
8 #include "V8TestInterface2.h" | 8 #include "V8TestInterface2.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 if (exceptionState.hadException()) | 72 if (exceptionState.hadException()) |
73 return; | 73 return; |
74 | 74 |
75 TestInterfaceEmpty* result = impl->item(index, exceptionState); | 75 TestInterfaceEmpty* result = impl->item(index, exceptionState); |
76 if (exceptionState.hadException()) { | 76 if (exceptionState.hadException()) { |
77 return; | 77 return; |
78 } | 78 } |
79 v8SetReturnValue(info, result); | 79 v8SetReturnValue(info, result); |
80 } | 80 } |
81 | 81 |
82 static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 82 void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
83 { | 83 { |
84 TestInterface2V8Internal::itemMethod(info); | 84 TestInterface2V8Internal::itemMethod(info); |
85 } | 85 } |
86 | 86 |
87 static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 87 static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
88 { | 88 { |
89 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "setItem"); | 89 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "setItem"); |
90 | 90 |
91 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 91 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
92 | 92 |
(...skipping 15 matching lines...) Expand all Loading... |
108 return; | 108 return; |
109 } | 109 } |
110 | 110 |
111 TestInterfaceEmpty* result = impl->setItem(index, value, exceptionState); | 111 TestInterfaceEmpty* result = impl->setItem(index, value, exceptionState); |
112 if (exceptionState.hadException()) { | 112 if (exceptionState.hadException()) { |
113 return; | 113 return; |
114 } | 114 } |
115 v8SetReturnValue(info, result); | 115 v8SetReturnValue(info, result); |
116 } | 116 } |
117 | 117 |
118 static void setItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
o) | 118 void setItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
119 { | 119 { |
120 TestInterface2V8Internal::setItemMethod(info); | 120 TestInterface2V8Internal::setItemMethod(info); |
121 } | 121 } |
122 | 122 |
123 static void deleteItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 123 static void deleteItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
124 { | 124 { |
125 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "deleteItem"); | 125 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "deleteItem"); |
126 | 126 |
127 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 127 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
128 | 128 |
129 if (UNLIKELY(info.Length() < 1)) { | 129 if (UNLIKELY(info.Length() < 1)) { |
130 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 130 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
131 return; | 131 return; |
132 } | 132 } |
133 | 133 |
134 unsigned index; | 134 unsigned index; |
135 index = toUInt32(info.GetIsolate(), info[0], NormalConversion, exceptionStat
e); | 135 index = toUInt32(info.GetIsolate(), info[0], NormalConversion, exceptionStat
e); |
136 if (exceptionState.hadException()) | 136 if (exceptionState.hadException()) |
137 return; | 137 return; |
138 | 138 |
139 bool result = impl->deleteItem(index, exceptionState); | 139 bool result = impl->deleteItem(index, exceptionState); |
140 if (exceptionState.hadException()) { | 140 if (exceptionState.hadException()) { |
141 return; | 141 return; |
142 } | 142 } |
143 v8SetReturnValueBool(info, result); | 143 v8SetReturnValueBool(info, result); |
144 } | 144 } |
145 | 145 |
146 static void deleteItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 146 void deleteItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
147 { | 147 { |
148 TestInterface2V8Internal::deleteItemMethod(info); | 148 TestInterface2V8Internal::deleteItemMethod(info); |
149 } | 149 } |
150 | 150 |
151 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 151 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
152 { | 152 { |
153 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "namedItem"); | 153 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "namedItem"); |
154 | 154 |
155 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 155 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
156 | 156 |
157 if (UNLIKELY(info.Length() < 1)) { | 157 if (UNLIKELY(info.Length() < 1)) { |
158 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 158 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
159 return; | 159 return; |
160 } | 160 } |
161 | 161 |
162 V8StringResource<> name; | 162 V8StringResource<> name; |
163 name = info[0]; | 163 name = info[0]; |
164 if (!name.prepare()) | 164 if (!name.prepare()) |
165 return; | 165 return; |
166 | 166 |
167 TestInterfaceEmpty* result = impl->namedItem(name, exceptionState); | 167 TestInterfaceEmpty* result = impl->namedItem(name, exceptionState); |
168 if (exceptionState.hadException()) { | 168 if (exceptionState.hadException()) { |
169 return; | 169 return; |
170 } | 170 } |
171 v8SetReturnValue(info, result); | 171 v8SetReturnValue(info, result); |
172 } | 172 } |
173 | 173 |
174 static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 174 void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
175 { | 175 { |
176 TestInterface2V8Internal::namedItemMethod(info); | 176 TestInterface2V8Internal::namedItemMethod(info); |
177 } | 177 } |
178 | 178 |
179 static void setNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 179 static void setNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
180 { | 180 { |
181 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "setNamedItem"); | 181 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "setNamedItem"); |
182 | 182 |
183 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 183 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
184 | 184 |
(...skipping 15 matching lines...) Expand all Loading... |
200 return; | 200 return; |
201 } | 201 } |
202 | 202 |
203 TestInterfaceEmpty* result = impl->setNamedItem(name, value, exceptionState)
; | 203 TestInterfaceEmpty* result = impl->setNamedItem(name, value, exceptionState)
; |
204 if (exceptionState.hadException()) { | 204 if (exceptionState.hadException()) { |
205 return; | 205 return; |
206 } | 206 } |
207 v8SetReturnValue(info, result); | 207 v8SetReturnValue(info, result); |
208 } | 208 } |
209 | 209 |
210 static void setNamedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) | 210 void setNamedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
211 { | 211 { |
212 TestInterface2V8Internal::setNamedItemMethod(info); | 212 TestInterface2V8Internal::setNamedItemMethod(info); |
213 } | 213 } |
214 | 214 |
215 static void deleteNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& inf
o) | 215 static void deleteNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& inf
o) |
216 { | 216 { |
217 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "deleteNamedItem"); | 217 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "deleteNamedItem"); |
218 | 218 |
219 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 219 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
220 | 220 |
221 if (UNLIKELY(info.Length() < 1)) { | 221 if (UNLIKELY(info.Length() < 1)) { |
222 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 222 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
223 return; | 223 return; |
224 } | 224 } |
225 | 225 |
226 V8StringResource<> name; | 226 V8StringResource<> name; |
227 name = info[0]; | 227 name = info[0]; |
228 if (!name.prepare()) | 228 if (!name.prepare()) |
229 return; | 229 return; |
230 | 230 |
231 bool result = impl->deleteNamedItem(name, exceptionState); | 231 bool result = impl->deleteNamedItem(name, exceptionState); |
232 if (exceptionState.hadException()) { | 232 if (exceptionState.hadException()) { |
233 return; | 233 return; |
234 } | 234 } |
235 v8SetReturnValueBool(info, result); | 235 v8SetReturnValueBool(info, result); |
236 } | 236 } |
237 | 237 |
238 static void deleteNamedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 238 void deleteNamedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
239 { | 239 { |
240 TestInterface2V8Internal::deleteNamedItemMethod(info); | 240 TestInterface2V8Internal::deleteNamedItemMethod(info); |
241 } | 241 } |
242 | 242 |
243 static void stringifierMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 243 static void stringifierMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
244 { | 244 { |
245 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 245 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
246 | 246 |
247 v8SetReturnValueString(info, impl->stringifierMethod(), info.GetIsolate()); | 247 v8SetReturnValueString(info, impl->stringifierMethod(), info.GetIsolate()); |
248 } | 248 } |
249 | 249 |
250 static void stringifierMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 250 void stringifierMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
251 { | 251 { |
252 TestInterface2V8Internal::stringifierMethodMethod(info); | 252 TestInterface2V8Internal::stringifierMethodMethod(info); |
253 } | 253 } |
254 | 254 |
255 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 255 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
256 { | 256 { |
257 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "keys"); | 257 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "keys"); |
258 | 258 |
259 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 259 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
260 | 260 |
261 ScriptState* scriptState = ScriptState::forReceiverObject(info); | 261 ScriptState* scriptState = ScriptState::forReceiverObject(info); |
262 | 262 |
263 Iterator* result = impl->keysForBinding(scriptState, exceptionState); | 263 Iterator* result = impl->keysForBinding(scriptState, exceptionState); |
264 if (exceptionState.hadException()) { | 264 if (exceptionState.hadException()) { |
265 return; | 265 return; |
266 } | 266 } |
267 v8SetReturnValue(info, result); | 267 v8SetReturnValue(info, result); |
268 } | 268 } |
269 | 269 |
270 static void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 270 void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
271 { | 271 { |
272 TestInterface2V8Internal::keysMethod(info); | 272 TestInterface2V8Internal::keysMethod(info); |
273 } | 273 } |
274 | 274 |
275 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 275 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
276 { | 276 { |
277 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "values"); | 277 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "values"); |
278 | 278 |
279 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 279 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
280 | 280 |
281 ScriptState* scriptState = ScriptState::forReceiverObject(info); | 281 ScriptState* scriptState = ScriptState::forReceiverObject(info); |
282 | 282 |
283 Iterator* result = impl->valuesForBinding(scriptState, exceptionState); | 283 Iterator* result = impl->valuesForBinding(scriptState, exceptionState); |
284 if (exceptionState.hadException()) { | 284 if (exceptionState.hadException()) { |
285 return; | 285 return; |
286 } | 286 } |
287 v8SetReturnValue(info, result); | 287 v8SetReturnValue(info, result); |
288 } | 288 } |
289 | 289 |
290 static void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
) | 290 void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
291 { | 291 { |
292 TestInterface2V8Internal::valuesMethod(info); | 292 TestInterface2V8Internal::valuesMethod(info); |
293 } | 293 } |
294 | 294 |
295 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 295 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
296 { | 296 { |
297 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "entries"); | 297 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "entries"); |
298 | 298 |
299 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 299 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
300 | 300 |
301 ScriptState* scriptState = ScriptState::forReceiverObject(info); | 301 ScriptState* scriptState = ScriptState::forReceiverObject(info); |
302 | 302 |
303 Iterator* result = impl->entriesForBinding(scriptState, exceptionState); | 303 Iterator* result = impl->entriesForBinding(scriptState, exceptionState); |
304 if (exceptionState.hadException()) { | 304 if (exceptionState.hadException()) { |
305 return; | 305 return; |
306 } | 306 } |
307 v8SetReturnValue(info, result); | 307 v8SetReturnValue(info, result); |
308 } | 308 } |
309 | 309 |
310 static void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
o) | 310 void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
311 { | 311 { |
312 TestInterface2V8Internal::entriesMethod(info); | 312 TestInterface2V8Internal::entriesMethod(info); |
313 } | 313 } |
314 | 314 |
315 static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 315 static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
316 { | 316 { |
317 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "forEach"); | 317 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "forEach"); |
318 | 318 |
319 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 319 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
320 | 320 |
(...skipping 14 matching lines...) Expand all Loading... |
335 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]); | 335 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]); |
336 | 336 |
337 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); | 337 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); |
338 | 338 |
339 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.Holder())
, callback, thisArg, exceptionState); | 339 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.Holder())
, callback, thisArg, exceptionState); |
340 if (exceptionState.hadException()) { | 340 if (exceptionState.hadException()) { |
341 return; | 341 return; |
342 } | 342 } |
343 } | 343 } |
344 | 344 |
345 static void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
o) | 345 void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
346 { | 346 { |
347 TestInterface2V8Internal::forEachMethod(info); | 347 TestInterface2V8Internal::forEachMethod(info); |
348 } | 348 } |
349 | 349 |
350 static void hasMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 350 static void hasMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
351 { | 351 { |
352 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "has"); | 352 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "has"); |
353 | 353 |
354 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 354 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
355 | 355 |
(...skipping 12 matching lines...) Expand all Loading... |
368 return; | 368 return; |
369 } | 369 } |
370 | 370 |
371 bool result = impl->hasForBinding(scriptState, value, exceptionState); | 371 bool result = impl->hasForBinding(scriptState, value, exceptionState); |
372 if (exceptionState.hadException()) { | 372 if (exceptionState.hadException()) { |
373 return; | 373 return; |
374 } | 374 } |
375 v8SetReturnValueBool(info, result); | 375 v8SetReturnValueBool(info, result); |
376 } | 376 } |
377 | 377 |
378 static void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 378 void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
379 { | 379 { |
380 TestInterface2V8Internal::hasMethod(info); | 380 TestInterface2V8Internal::hasMethod(info); |
381 } | 381 } |
382 | 382 |
383 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 383 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
384 { | 384 { |
385 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 385 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
386 | 386 |
387 v8SetReturnValueString(info, impl->stringifierMethod(), info.GetIsolate()); | 387 v8SetReturnValueString(info, impl->stringifierMethod(), info.GetIsolate()); |
388 } | 388 } |
389 | 389 |
390 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 390 void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
391 { | 391 { |
392 TestInterface2V8Internal::toStringMethod(info); | 392 TestInterface2V8Internal::toStringMethod(info); |
393 } | 393 } |
394 | 394 |
395 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 395 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
396 { | 396 { |
397 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "iterator"); | 397 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface2", "iterator"); |
398 | 398 |
399 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 399 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
400 | 400 |
401 ScriptState* scriptState = ScriptState::forReceiverObject(info); | 401 ScriptState* scriptState = ScriptState::forReceiverObject(info); |
402 | 402 |
403 Iterator* result = impl->iterator(scriptState, exceptionState); | 403 Iterator* result = impl->iterator(scriptState, exceptionState); |
404 if (exceptionState.hadException()) { | 404 if (exceptionState.hadException()) { |
405 return; | 405 return; |
406 } | 406 } |
407 v8SetReturnValue(info, result); | 407 v8SetReturnValue(info, result); |
408 } | 408 } |
409 | 409 |
410 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 410 void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
411 { | 411 { |
412 TestInterface2V8Internal::iteratorMethod(info); | 412 TestInterface2V8Internal::iteratorMethod(info); |
413 } | 413 } |
414 | 414 |
415 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 415 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
416 { | 416 { |
417 TestInterface2* impl = TestInterface2::create(); | 417 TestInterface2* impl = TestInterface2::create(); |
418 v8::Local<v8::Object> wrapper = info.Holder(); | 418 v8::Local<v8::Object> wrapper = info.Holder(); |
419 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterface2::w
rapperTypeInfo, wrapper); | 419 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterface2::w
rapperTypeInfo, wrapper); |
420 v8SetReturnValue(info, wrapper); | 420 v8SetReturnValue(info, wrapper); |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 InstallTemplateFunction V8TestInterface2::installV8TestInterface2TemplateFunctio
n = (InstallTemplateFunction)&V8TestInterface2::installV8TestInterface2Template; | 698 InstallTemplateFunction V8TestInterface2::installV8TestInterface2TemplateFunctio
n = (InstallTemplateFunction)&V8TestInterface2::installV8TestInterface2Template; |
699 | 699 |
700 void V8TestInterface2::updateWrapperTypeInfo(InstallTemplateFunction installTemp
lateFunction, PreparePrototypeAndInterfaceObjectFunction preparePrototypeAndInte
rfaceObjectFunction) | 700 void V8TestInterface2::updateWrapperTypeInfo(InstallTemplateFunction installTemp
lateFunction, PreparePrototypeAndInterfaceObjectFunction preparePrototypeAndInte
rfaceObjectFunction) |
701 { | 701 { |
702 V8TestInterface2::installV8TestInterface2TemplateFunction = installTemplateF
unction; | 702 V8TestInterface2::installV8TestInterface2TemplateFunction = installTemplateF
unction; |
703 if (preparePrototypeAndInterfaceObjectFunction) | 703 if (preparePrototypeAndInterfaceObjectFunction) |
704 V8TestInterface2::wrapperTypeInfo.preparePrototypeAndInterfaceObjectFunc
tion = preparePrototypeAndInterfaceObjectFunction; | 704 V8TestInterface2::wrapperTypeInfo.preparePrototypeAndInterfaceObjectFunc
tion = preparePrototypeAndInterfaceObjectFunction; |
705 } | 705 } |
706 | 706 |
707 } // namespace blink | 707 } // namespace blink |
OLD | NEW |