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 4157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4168 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAttribute()); | 4168 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAttribute()); |
4169 } | 4169 } |
4170 | 4170 |
4171 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4171 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4172 { | 4172 { |
4173 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4173 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4174 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeGetter(info); | 4174 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeGetter(info); |
4175 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4175 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4176 } | 4176 } |
4177 | 4177 |
| 4178 static void replaceableReadonlyLongAccessorAttributeGetter(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 4179 { |
| 4180 v8::Local<v8::Object> holder = info.Holder(); |
| 4181 TestObject* impl = V8TestObject::toImpl(holder); |
| 4182 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAccessor()); |
| 4183 } |
| 4184 |
| 4185 static void replaceableReadonlyLongAccessorAttributeGetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
| 4186 { |
| 4187 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4188 TestObjectV8Internal::replaceableReadonlyLongAccessorAttributeGetter(info); |
| 4189 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4190 } |
| 4191 |
| 4192 static void replaceableReadonlyLongAccessorAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4193 { |
| 4194 if (info.This()->IsObject()) { |
| 4195 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "
replaceableReadonlyLongAccessor"); |
| 4196 v8::Local<v8::Object>::Cast(info.This())->ForceSet(propertyName, v8Value
); |
| 4197 } |
| 4198 } |
| 4199 |
| 4200 static void replaceableReadonlyLongAccessorAttributeSetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
| 4201 { |
| 4202 v8::Local<v8::Value> v8Value = info[0]; |
| 4203 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4204 TestObjectV8Internal::replaceableReadonlyLongAccessorAttributeSetter(v8Value
, info); |
| 4205 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4206 } |
| 4207 |
4178 static void locationPutForwardsAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 4208 static void locationPutForwardsAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
4179 { | 4209 { |
4180 v8::Local<v8::Object> holder = info.Holder(); | 4210 v8::Local<v8::Object> holder = info.Holder(); |
4181 TestObject* impl = V8TestObject::toImpl(holder); | 4211 TestObject* impl = V8TestObject::toImpl(holder); |
4182 v8SetReturnValueFast(info, WTF::getPtr(impl->locationPutForwards()), impl); | 4212 v8SetReturnValueFast(info, WTF::getPtr(impl->locationPutForwards()), impl); |
4183 } | 4213 } |
4184 | 4214 |
4185 static void locationPutForwardsAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 4215 static void locationPutForwardsAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
4186 { | 4216 { |
4187 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4217 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
(...skipping 6998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11186 {"readonlyShortAttribute", TestObjectV8Internal::readonlyShortAttributeAttri
buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnInstance}, | 11216 {"readonlyShortAttribute", TestObjectV8Internal::readonlyShortAttributeAttri
buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnInstance}, |
11187 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba
ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 11217 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba
ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
11188 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall
back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}
, | 11218 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall
back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}
, |
11189 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback
, TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 11219 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback
, TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
11190 {"attributeImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::attr
ibuteImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback, TestObjectV8In
ternal::attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), V8DOMConfiguration::OnlyExposedToPrivateScript, V8DOMConfigura
tion::OnInstance}, | 11220 {"attributeImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::attr
ibuteImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback, TestObjectV8In
ternal::attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), V8DOMConfiguration::OnlyExposedToPrivateScript, V8DOMConfigura
tion::OnInstance}, |
11191 {"enumForPrivateScript", TestObjectV8Internal::enumForPrivateScriptAttribute
GetterCallback, TestObjectV8Internal::enumForPrivateScriptAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnInstance}, | 11221 {"enumForPrivateScript", TestObjectV8Internal::enumForPrivateScriptAttribute
GetterCallback, TestObjectV8Internal::enumForPrivateScriptAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnInstance}, |
11192 }; | 11222 }; |
11193 | 11223 |
11194 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] =
{ | 11224 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] =
{ |
11195 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo
ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed
ToAllScripts}, | 11225 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo
ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed
ToAllScripts}, |
| 11226 {"replaceableReadonlyLongAccessor", TestObjectV8Internal::replaceableReadonl
yLongAccessorAttributeGetterCallback, TestObjectV8Internal::replaceableReadonlyL
ongAccessorAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo
sedToAllScripts}, |
11196 }; | 11227 }; |
11197 | 11228 |
11198 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { | 11229 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { |
11199 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, | 11230 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, |
11200 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, | 11231 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, |
11201 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, V8D
OMConfiguration::ExposedToAllScripts}, | 11232 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, V8D
OMConfiguration::ExposedToAllScripts}, |
11202 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 11233 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
11203 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0,
0, V8DOMConfiguration::ExposedToAllScripts}, | 11234 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0,
0, V8DOMConfiguration::ExposedToAllScripts}, |
11204 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 11235 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
11205 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0, V
8DOMConfiguration::ExposedToAllScripts}, | 11236 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0, V
8DOMConfiguration::ExposedToAllScripts}, |
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12086 return false; | 12117 return false; |
12087 | 12118 |
12088 ScriptState::Scope scope(scriptState); | 12119 ScriptState::Scope scope(scriptState); |
12089 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12120 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
12090 | 12121 |
12091 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 12122 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
12092 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 12123 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
12093 } | 12124 } |
12094 | 12125 |
12095 } // namespace blink | 12126 } // namespace blink |
OLD | NEW |