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. | 5 // This file has been auto-generated by code_generator_v8.py. |
6 // DO NOT MODIFY! | 6 // DO NOT MODIFY! |
7 | 7 |
8 // This file has been generated from the Jinja2 template in | 8 // This file has been generated from the Jinja2 template in |
9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
10 | 10 |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 | 340 |
341 void V8TestInterfaceGarbageCollected::iteratorMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) { | 341 void V8TestInterfaceGarbageCollected::iteratorMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) { |
342 TestInterfaceGarbageCollectedV8Internal::iteratorMethod(info); | 342 TestInterfaceGarbageCollectedV8Internal::iteratorMethod(info); |
343 } | 343 } |
344 | 344 |
345 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceGarbageCollectedA
ccessors[] = { | 345 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceGarbageCollectedA
ccessors[] = { |
346 {"attr1", V8TestInterfaceGarbageCollected::attr1AttributeGetterCallback, V8T
estInterfaceGarbageCollected::attr1AttributeSetterCallback, nullptr, nullptr, nu
llptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::OnPrototype, V8DOMConfiguration::CheckHolder}, | 346 {"attr1", V8TestInterfaceGarbageCollected::attr1AttributeGetterCallback, V8T
estInterfaceGarbageCollected::attr1AttributeSetterCallback, nullptr, nullptr, nu
llptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::OnPrototype, V8DOMConfiguration::CheckHolder}, |
347 }; | 347 }; |
348 | 348 |
349 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageCollectedMet
hods[] = { | 349 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageCollectedMet
hods[] = { |
350 {"func", V8TestInterfaceGarbageCollected::funcMethodCallback, nullptr, 1, v8
::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMC
onfiguration::DoNotCheckAccess}, | 350 {"func", V8TestInterfaceGarbageCollected::funcMethodCallback, 1, v8::None, V
8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigurat
ion::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
351 {"keys", V8TestInterfaceGarbageCollected::keysMethodCallback, nullptr, 0, v8
::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMC
onfiguration::DoNotCheckAccess}, | 351 {"keys", V8TestInterfaceGarbageCollected::keysMethodCallback, 0, v8::None, V
8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigurat
ion::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
352 {"values", V8TestInterfaceGarbageCollected::valuesMethodCallback, nullptr, 0
, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8
DOMConfiguration::DoNotCheckAccess}, | 352 {"values", V8TestInterfaceGarbageCollected::valuesMethodCallback, 0, v8::Non
e, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfig
uration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
353 {"entries", V8TestInterfaceGarbageCollected::entriesMethodCallback, nullptr,
0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder,
V8DOMConfiguration::DoNotCheckAccess}, | 353 {"entries", V8TestInterfaceGarbageCollected::entriesMethodCallback, 0, v8::N
one, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConf
iguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
354 {"forEach", V8TestInterfaceGarbageCollected::forEachMethodCallback, nullptr,
1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder,
V8DOMConfiguration::DoNotCheckAccess}, | 354 {"forEach", V8TestInterfaceGarbageCollected::forEachMethodCallback, 1, v8::N
one, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConf
iguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
355 {"has", V8TestInterfaceGarbageCollected::hasMethodCallback, nullptr, 1, v8::
None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMCon
figuration::DoNotCheckAccess}, | 355 {"has", V8TestInterfaceGarbageCollected::hasMethodCallback, 1, v8::None, V8D
OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguratio
n::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
356 {"add", V8TestInterfaceGarbageCollected::addMethodCallback, nullptr, 1, v8::
None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMCon
figuration::DoNotCheckAccess}, | 356 {"add", V8TestInterfaceGarbageCollected::addMethodCallback, 1, v8::None, V8D
OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguratio
n::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
357 {"clear", V8TestInterfaceGarbageCollected::clearMethodCallback, nullptr, 0,
v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DO
MConfiguration::DoNotCheckAccess}, | 357 {"clear", V8TestInterfaceGarbageCollected::clearMethodCallback, 0, v8::None,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigur
ation::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
358 {"delete", V8TestInterfaceGarbageCollected::deleteMethodCallback, nullptr, 1
, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8
DOMConfiguration::DoNotCheckAccess}, | 358 {"delete", V8TestInterfaceGarbageCollected::deleteMethodCallback, 1, v8::Non
e, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfig
uration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
359 }; | 359 }; |
360 | 360 |
361 void V8TestInterfaceGarbageCollected::constructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) { | 361 void V8TestInterfaceGarbageCollected::constructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) { |
362 if (!info.IsConstructCall()) { | 362 if (!info.IsConstructCall()) { |
363 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const
ructorNotCallableAsFunction("TestInterfaceGarbageCollected")); | 363 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const
ructorNotCallableAsFunction("TestInterfaceGarbageCollected")); |
364 return; | 364 return; |
365 } | 365 } |
366 | 366 |
367 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti
ngObject) { | 367 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti
ngObject) { |
368 v8SetReturnValue(info, info.Holder()); | 368 v8SetReturnValue(info, info.Holder()); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 | 408 |
409 TestInterfaceGarbageCollected* V8TestInterfaceGarbageCollected::toImplWithTypeCh
eck(v8::Isolate* isolate, v8::Local<v8::Value> value) { | 409 TestInterfaceGarbageCollected* V8TestInterfaceGarbageCollected::toImplWithTypeCh
eck(v8::Isolate* isolate, v8::Local<v8::Value> value) { |
410 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 410 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
411 } | 411 } |
412 | 412 |
413 TestInterfaceGarbageCollected* NativeValueTraits<TestInterfaceGarbageCollected>:
:nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& e
xceptionState) { | 413 TestInterfaceGarbageCollected* NativeValueTraits<TestInterfaceGarbageCollected>:
:nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& e
xceptionState) { |
414 return V8TestInterfaceGarbageCollected::toImplWithTypeCheck(isolate, value); | 414 return V8TestInterfaceGarbageCollected::toImplWithTypeCheck(isolate, value); |
415 } | 415 } |
416 | 416 |
417 } // namespace blink | 417 } // namespace blink |
OLD | NEW |