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 5067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5078 { | 5078 { |
5079 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5079 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5080 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::FeatureName); | 5080 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::FeatureName); |
5081 TestObjectV8Internal::TestObjectConstructorGetter(property, info); | 5081 TestObjectV8Internal::TestObjectConstructorGetter(property, info); |
5082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5083 } | 5083 } |
5084 | 5084 |
5085 static void TestObjectForceSetAttributeOnThis(v8::Local<v8::String> name, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5085 static void TestObjectForceSetAttributeOnThis(v8::Local<v8::String> name, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
5086 { | 5086 { |
5087 if (info.This()->IsObject()) | 5087 if (info.This()->IsObject()) |
5088 v8::Handle<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); | 5088 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); |
5089 } | 5089 } |
5090 | 5090 |
5091 static void TestObjectForceSetAttributeOnThisCallback(v8::Local<v8::String> name
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5091 static void TestObjectForceSetAttributeOnThisCallback(v8::Local<v8::String> name
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
5092 { | 5092 { |
5093 TestObjectV8Internal::TestObjectForceSetAttributeOnThis(name, v8Value, info)
; | 5093 TestObjectV8Internal::TestObjectForceSetAttributeOnThis(name, v8Value, info)
; |
5094 } | 5094 } |
5095 | 5095 |
5096 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 5096 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
5097 { | 5097 { |
5098 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5098 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
(...skipping 6008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11107 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v
8::None, runtimeEnabledOverloadedVoidMethodMethodConfiguration, isolate); | 11107 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v
8::None, runtimeEnabledOverloadedVoidMethodMethodConfiguration, isolate); |
11108 } | 11108 } |
11109 const V8DOMConfiguration::MethodConfiguration partiallyRuntimeEnabledOverloa
dedVoidMethodMethodConfiguration = { | 11109 const V8DOMConfiguration::MethodConfiguration partiallyRuntimeEnabledOverloa
dedVoidMethodMethodConfiguration = { |
11110 "partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::par
tiallyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, TestObjectV8Internal:
:partiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), V8DOMConfiguration::
ExposedToAllScripts, | 11110 "partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::par
tiallyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, TestObjectV8Internal:
:partiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), V8DOMConfiguration::
ExposedToAllScripts, |
11111 }; | 11111 }; |
11112 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::N
one, partiallyRuntimeEnabledOverloadedVoidMethodMethodConfiguration, isolate); | 11112 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::N
one, partiallyRuntimeEnabledOverloadedVoidMethodMethodConfiguration, isolate); |
11113 const V8DOMConfiguration::MethodConfiguration unforgeableVoidMethodMethodCon
figuration = { | 11113 const V8DOMConfiguration::MethodConfiguration unforgeableVoidMethodMethodCon
figuration = { |
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::Handle<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::Handle<v8::Acce
ssorSignature>(), 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::Handle<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 |
(...skipping 515 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 |