| 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 "V8TestObject.h" | 8 #include "V8TestObject.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
| (...skipping 12612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12623 "partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::par
tiallyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, TestObjectV8Internal:
:partiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), V8DOMConfiguration::
ExposedToAllScripts, | 12623 "partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::par
tiallyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, TestObjectV8Internal:
:partiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), V8DOMConfiguration::
ExposedToAllScripts, |
| 12624 }; | 12624 }; |
| 12625 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::None, partiallyRuntimeEnabledOverloadedVoidMethodMethodConfiguration); | 12625 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::None, partiallyRuntimeEnabledOverloadedVoidMethodMethodConfiguration); |
| 12626 const V8DOMConfiguration::MethodConfiguration unforgeableVoidMethodMethodCon
figuration = { | 12626 const V8DOMConfiguration::MethodConfiguration unforgeableVoidMethodMethodCon
figuration = { |
| 12627 "unforgeableVoidMethod", TestObjectV8Internal::unforgeableVoidMethodMeth
odCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, | 12627 "unforgeableVoidMethod", TestObjectV8Internal::unforgeableVoidMethodMeth
odCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, |
| 12628 }; | 12628 }; |
| 12629 V8DOMConfiguration::installMethod(isolate, instanceTemplate, defaultSignatur
e, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), unforgeabl
eVoidMethodMethodConfiguration); | 12629 V8DOMConfiguration::installMethod(isolate, instanceTemplate, defaultSignatur
e, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), unforgeabl
eVoidMethodMethodConfiguration); |
| 12630 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestObjectV8Internal::staticStringAttributeAttributeGetterCallback
, TestObjectV8Internal::staticStringAttributeAttributeSetterCallback, v8::Extern
al::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8:
:AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 12630 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestObjectV8Internal::staticStringAttributeAttributeGetterCallback
, TestObjectV8Internal::staticStringAttributeAttributeSetterCallback, v8::Extern
al::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8:
:AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
| 12631 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticLongA
ttribute"), TestObjectV8Internal::staticLongAttributeAttributeGetterCallback, Te
stObjectV8Internal::staticLongAttributeAttributeSetterCallback, v8::External::Ne
w(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::Acces
sorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 12631 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticLongA
ttribute"), TestObjectV8Internal::staticLongAttributeAttributeGetterCallback, Te
stObjectV8Internal::staticLongAttributeAttributeSetterCallback, v8::External::Ne
w(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::Acces
sorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
| 12632 | 12632 |
| 12633 instanceTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(is
olate, "TestObject")); |
| 12634 |
| 12635 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i
solate, "TestObjectPrototype")); |
| 12636 |
| 12633 // Custom toString template | 12637 // Custom toString template |
| 12634 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 12638 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 12635 } | 12639 } |
| 12636 | 12640 |
| 12637 v8::Local<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate) | 12641 v8::Local<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate) |
| 12638 { | 12642 { |
| 12639 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestObjectTemplate); | 12643 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestObjectTemplate); |
| 12640 } | 12644 } |
| 12641 | 12645 |
| 12642 bool V8TestObject::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* isolat
e) | 12646 bool V8TestObject::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* isolat
e) |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13173 return false; | 13177 return false; |
| 13174 | 13178 |
| 13175 ScriptState::Scope scope(scriptState); | 13179 ScriptState::Scope scope(scriptState); |
| 13176 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13180 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 13177 | 13181 |
| 13178 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13182 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
| 13179 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 13183 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
| 13180 } | 13184 } |
| 13181 | 13185 |
| 13182 } // namespace blink | 13186 } // namespace blink |
| OLD | NEW |