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 11103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11114 "unforgeableVoidMethod", TestObjectV8Internal::unforgeableVoidMethodMeth
odCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, | 11114 "unforgeableVoidMethod", TestObjectV8Internal::unforgeableVoidMethodMeth
odCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, |
11115 }; | 11115 }; |
11116 V8DOMConfiguration::installMethod(instanceTemplate, defaultSignature, static
_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), unforgeableVoidMeth
odMethodConfiguration, isolate); | 11116 V8DOMConfiguration::installMethod(instanceTemplate, defaultSignature, static
_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), unforgeableVoidMeth
odMethodConfiguration, isolate); |
11117 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)); | 11117 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)); |
11118 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)); | 11118 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)); |
11119 | 11119 |
11120 // Custom toString template | 11120 // Custom toString template |
11121 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 11121 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
11122 } | 11122 } |
11123 | 11123 |
11124 v8::Handle<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate) | 11124 v8::Local<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate) |
11125 { | 11125 { |
11126 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestObjectTemplate); | 11126 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestObjectTemplate); |
11127 } | 11127 } |
11128 | 11128 |
11129 bool V8TestObject::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isola
te) | 11129 bool V8TestObject::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isola
te) |
11130 { | 11130 { |
11131 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 11131 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
11132 } | 11132 } |
11133 | 11133 |
11134 v8::Handle<v8::Object> V8TestObject::findInstanceInPrototypeChain(v8::Handle<v8:
:Value> v8Value, v8::Isolate* isolate) | 11134 v8::Handle<v8::Object> V8TestObject::findInstanceInPrototypeChain(v8::Handle<v8:
:Value> v8Value, v8::Isolate* isolate) |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11644 return false; | 11644 return false; |
11645 | 11645 |
11646 ScriptState::Scope scope(scriptState); | 11646 ScriptState::Scope scope(scriptState); |
11647 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 11647 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11648 | 11648 |
11649 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11649 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
11650 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 11650 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
11651 } | 11651 } |
11652 | 11652 |
11653 } // namespace blink | 11653 } // namespace blink |
OLD | NEW |