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 "V8TestInterfaceNode.h" | 8 #include "V8TestInterfaceNode.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Valu
e, info); | 268 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Valu
e, info); |
269 } | 269 } |
270 | 270 |
271 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 271 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
272 { | 272 { |
273 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); | 273 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); |
274 | 274 |
275 v8SetReturnValueFast(info, impl->testInterfaceEmptyMethod(), impl); | 275 v8SetReturnValueFast(info, impl->testInterfaceEmptyMethod(), impl); |
276 } | 276 } |
277 | 277 |
278 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 278 void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
279 { | 279 { |
280 TestInterfaceNodeV8Internal::testInterfaceEmptyMethodMethod(info); | 280 TestInterfaceNodeV8Internal::testInterfaceEmptyMethodMethod(info); |
281 } | 281 } |
282 | 282 |
283 static void perWorldBindingsTestInterfaceEmptyMethodMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 283 static void perWorldBindingsTestInterfaceEmptyMethodMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
284 { | 284 { |
285 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); | 285 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); |
286 | 286 |
287 v8SetReturnValueFast(info, impl->perWorldBindingsTestInterfaceEmptyMethod(),
impl); | 287 v8SetReturnValueFast(info, impl->perWorldBindingsTestInterfaceEmptyMethod(),
impl); |
288 } | 288 } |
289 | 289 |
290 static void perWorldBindingsTestInterfaceEmptyMethodMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 290 void perWorldBindingsTestInterfaceEmptyMethodMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
291 { | 291 { |
292 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethod(
info); | 292 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethod(
info); |
293 } | 293 } |
294 | 294 |
295 static void perWorldBindingsTestInterfaceEmptyMethodMethodForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 295 static void perWorldBindingsTestInterfaceEmptyMethodMethodForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
296 { | 296 { |
297 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); | 297 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); |
298 | 298 |
299 v8SetReturnValueForMainWorld(info, impl->perWorldBindingsTestInterfaceEmptyM
ethod()); | 299 v8SetReturnValueForMainWorld(info, impl->perWorldBindingsTestInterfaceEmptyM
ethod()); |
300 } | 300 } |
301 | 301 |
302 static void perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 302 void perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld(const v8
::FunctionCallbackInfo<v8::Value>& info) |
303 { | 303 { |
304 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodF
orMainWorld(info); | 304 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodF
orMainWorld(info); |
305 } | 305 } |
306 | 306 |
307 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 307 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
308 { | 308 { |
309 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterfaceNode", "perWorldBindingsTestInterfaceEmptyMethodOptionalBoo
leanArg"); | 309 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterfaceNode", "perWorldBindingsTestInterfaceEmptyMethodOptionalBoo
leanArg"); |
310 | 310 |
311 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); | 311 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); |
312 | 312 |
313 bool optionalBooleanArgument; | 313 bool optionalBooleanArgument; |
314 int numArgsPassed = info.Length(); | 314 int numArgsPassed = info.Length(); |
315 while (numArgsPassed > 0) { | 315 while (numArgsPassed > 0) { |
316 if (!info[numArgsPassed - 1]->IsUndefined()) | 316 if (!info[numArgsPassed - 1]->IsUndefined()) |
317 break; | 317 break; |
318 --numArgsPassed; | 318 --numArgsPassed; |
319 } | 319 } |
320 if (UNLIKELY(numArgsPassed <= 0)) { | 320 if (UNLIKELY(numArgsPassed <= 0)) { |
321 v8SetReturnValueFast(info, impl->perWorldBindingsTestInterfaceEmptyMetho
dOptionalBooleanArg(), impl); | 321 v8SetReturnValueFast(info, impl->perWorldBindingsTestInterfaceEmptyMetho
dOptionalBooleanArg(), impl); |
322 return; | 322 return; |
323 } | 323 } |
324 optionalBooleanArgument = toBoolean(info.GetIsolate(), info[0], exceptionSta
te); | 324 optionalBooleanArgument = toBoolean(info.GetIsolate(), info[0], exceptionSta
te); |
325 if (exceptionState.hadException()) | 325 if (exceptionState.hadException()) |
326 return; | 326 return; |
327 | 327 |
328 v8SetReturnValueFast(info, impl->perWorldBindingsTestInterfaceEmptyMethodOpt
ionalBooleanArg(optionalBooleanArgument), impl); | 328 v8SetReturnValueFast(info, impl->perWorldBindingsTestInterfaceEmptyMethodOpt
ionalBooleanArg(optionalBooleanArgument), impl); |
329 } | 329 } |
330 | 330 |
331 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) | 331 void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
332 { | 332 { |
333 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethod(info); | 333 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethod(info); |
334 } | 334 } |
335 | 335 |
336 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 336 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
337 { | 337 { |
338 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterfaceNode", "perWorldBindingsTestInterfaceEmptyMethodOptionalBoo
leanArg"); | 338 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterfaceNode", "perWorldBindingsTestInterfaceEmptyMethodOptionalBoo
leanArg"); |
339 | 339 |
340 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); | 340 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); |
341 | 341 |
342 bool optionalBooleanArgument; | 342 bool optionalBooleanArgument; |
343 int numArgsPassed = info.Length(); | 343 int numArgsPassed = info.Length(); |
344 while (numArgsPassed > 0) { | 344 while (numArgsPassed > 0) { |
345 if (!info[numArgsPassed - 1]->IsUndefined()) | 345 if (!info[numArgsPassed - 1]->IsUndefined()) |
346 break; | 346 break; |
347 --numArgsPassed; | 347 --numArgsPassed; |
348 } | 348 } |
349 if (UNLIKELY(numArgsPassed <= 0)) { | 349 if (UNLIKELY(numArgsPassed <= 0)) { |
350 v8SetReturnValueForMainWorld(info, impl->perWorldBindingsTestInterfaceEm
ptyMethodOptionalBooleanArg()); | 350 v8SetReturnValueForMainWorld(info, impl->perWorldBindingsTestInterfaceEm
ptyMethodOptionalBooleanArg()); |
351 return; | 351 return; |
352 } | 352 } |
353 optionalBooleanArgument = toBoolean(info.GetIsolate(), info[0], exceptionSta
te); | 353 optionalBooleanArgument = toBoolean(info.GetIsolate(), info[0], exceptionSta
te); |
354 if (exceptionState.hadException()) | 354 if (exceptionState.hadException()) |
355 return; | 355 return; |
356 | 356 |
357 v8SetReturnValueForMainWorld(info, impl->perWorldBindingsTestInterfaceEmptyM
ethodOptionalBooleanArg(optionalBooleanArgument)); | 357 v8SetReturnValueForMainWorld(info, impl->perWorldBindingsTestInterfaceEmptyM
ethodOptionalBooleanArg(optionalBooleanArgument)); |
358 } | 358 } |
359 | 359 |
360 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 360 void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallbackFor
MainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
361 { | 361 { |
362 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethodForMainWorld(info); | 362 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethodForMainWorld(info); |
363 } | 363 } |
364 | 364 |
365 } // namespace TestInterfaceNodeV8Internal | 365 } // namespace TestInterfaceNodeV8Internal |
366 | 366 |
367 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceNodeAccessors[] =
{ | 367 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceNodeAccessors[] =
{ |
368 {"nodeName", TestInterfaceNodeV8Internal::nodeNameAttributeGetterCallback, T
estInterfaceNodeV8Internal::nodeNameAttributeSetterCallback, 0, 0, 0, v8::DEFAUL
T, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 368 {"nodeName", TestInterfaceNodeV8Internal::nodeNameAttributeGetterCallback, T
estInterfaceNodeV8Internal::nodeNameAttributeSetterCallback, 0, 0, 0, v8::DEFAUL
T, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
369 {"stringAttribute", TestInterfaceNodeV8Internal::stringAttributeAttributeGet
terCallback, TestInterfaceNodeV8Internal::stringAttributeAttributeSetterCallback
, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi
guration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurati
on::CheckHolder}, | 369 {"stringAttribute", TestInterfaceNodeV8Internal::stringAttributeAttributeGet
terCallback, TestInterfaceNodeV8Internal::stringAttributeAttributeSetterCallback
, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi
guration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurati
on::CheckHolder}, |
370 {"readonlyTestInterfaceEmptyAttribute", TestInterfaceNodeV8Internal::readonl
yTestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, st
atic_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 370 {"readonlyTestInterfaceEmptyAttribute", TestInterfaceNodeV8Internal::readonl
yTestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, st
atic_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 { | 409 { |
410 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 410 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
411 } | 411 } |
412 | 412 |
413 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) | 413 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) |
414 { | 414 { |
415 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; | 415 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; |
416 } | 416 } |
417 | 417 |
418 } // namespace blink | 418 } // namespace blink |
OLD | NEW |