Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: Source/bindings/tests/results/core/V8TestObject.cpp

Issue 698423002: IDL union: nullable support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after
1760 impl->setDoubleOrStringAttribute(cppValue); 1760 impl->setDoubleOrStringAttribute(cppValue);
1761 } 1761 }
1762 1762
1763 static void doubleOrStringAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1763 static void doubleOrStringAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1764 { 1764 {
1765 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1765 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1766 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info); 1766 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info);
1767 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1767 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1768 } 1768 }
1769 1769
1770 static void doubleOrStringOrNullAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
1771 {
1772 v8::Handle<v8::Object> holder = info.Holder();
1773 TestObject* impl = V8TestObject::toImpl(holder);
1774 DoubleOrString result;
1775 impl->doubleOrStringOrNullAttribute(result);
1776 v8SetReturnValue(info, result);
1777 }
1778
1779 static void doubleOrStringOrNullAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
1780 {
1781 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1782 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info);
1783 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1784 }
1785
1786 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
1787 {
1788 v8::Handle<v8::Object> holder = info.Holder();
1789 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString OrNullAttribute", "TestObject", holder, info.GetIsolate());
1790 DoubleOrString cppValue;
1791 TestObject* impl = V8TestObject::toImpl(holder);
1792 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info .GetIsolate(), v8Value, cppValue, exceptionState), exceptionState);
1793 impl->setDoubleOrStringOrNullAttribute(cppValue);
1794 }
1795
1796 static void doubleOrStringOrNullAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
1797 {
1798 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1799 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value, info);
1800 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1801 }
1802
1770 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1803 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1771 { 1804 {
1772 v8::Handle<v8::Object> holder = info.Holder(); 1805 v8::Handle<v8::Object> holder = info.Holder();
1773 TestObject* impl = V8TestObject::toImpl(holder); 1806 TestObject* impl = V8TestObject::toImpl(holder);
1774 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te()); 1807 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te());
1775 } 1808 }
1776 1809
1777 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1810 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1778 { 1811 {
1779 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1812 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
(...skipping 4647 matching lines...) Expand 10 before | Expand all | Expand 10 after
6427 6460
6428 static void voidMethodDOMStringOrDoubleMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6461 static void voidMethodDOMStringOrDoubleMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6429 { 6462 {
6430 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMStringOrDouble", "TestObject", info.Holder(), info.GetIsolate()); 6463 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMStringOrDouble", "TestObject", info.Holder(), info.GetIsolate());
6431 if (UNLIKELY(info.Length() < 1)) { 6464 if (UNLIKELY(info.Length() < 1)) {
6432 setMinimumArityTypeError(exceptionState, 1, info.Length()); 6465 setMinimumArityTypeError(exceptionState, 1, info.Length());
6433 exceptionState.throwIfNeeded(); 6466 exceptionState.throwIfNeeded();
6434 return; 6467 return;
6435 } 6468 }
6436 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6469 TestObject* impl = V8TestObject::toImpl(info.Holder());
6437 StringOrDouble arg; 6470 DoubleOrString arg;
6438 { 6471 {
6439 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrDouble::toImpl(info.G etIsolate(), info[0], arg, exceptionState), exceptionState); 6472 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.G etIsolate(), info[0], arg, exceptionState), exceptionState);
6440 } 6473 }
6441 impl->voidMethodDOMStringOrDouble(arg); 6474 impl->voidMethodDOMStringOrDouble(arg);
6442 } 6475 }
6443 6476
6444 static void voidMethodDOMStringOrDoubleMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6477 static void voidMethodDOMStringOrDoubleMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6445 { 6478 {
6446 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6479 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6447 TestObjectV8Internal::voidMethodDOMStringOrDoubleMethod(info); 6480 TestObjectV8Internal::voidMethodDOMStringOrDoubleMethod(info);
6448 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6481 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6449 } 6482 }
6450 6483
6484 static void voidMethodDOMStringOrDoubleOrNullMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
6485 {
6486 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMStringOrDoubleOrNull", "TestObject", info.Holder(), info.GetIsolate());
6487 if (UNLIKELY(info.Length() < 1)) {
6488 setMinimumArityTypeError(exceptionState, 1, info.Length());
6489 exceptionState.throwIfNeeded();
6490 return;
6491 }
6492 TestObject* impl = V8TestObject::toImpl(info.Holder());
6493 DoubleOrString arg;
6494 {
6495 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl( info.GetIsolate(), info[0], arg, exceptionState), exceptionState);
6496 }
6497 impl->voidMethodDOMStringOrDoubleOrNull(arg);
6498 }
6499
6500 static void voidMethodDOMStringOrDoubleOrNullMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
6501 {
6502 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6503 TestObjectV8Internal::voidMethodDOMStringOrDoubleOrNullMethod(info);
6504 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6505 }
6506
6451 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info) 6507 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info)
6452 { 6508 {
6453 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMStringOrArrayBufferOrArrayBufferView", "TestObject", info.Holder(), info.GetIs olate()); 6509 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMStringOrArrayBufferOrArrayBufferView", "TestObject", info.Holder(), info.GetIs olate());
6454 if (UNLIKELY(info.Length() < 1)) { 6510 if (UNLIKELY(info.Length() < 1)) {
6455 setMinimumArityTypeError(exceptionState, 1, info.Length()); 6511 setMinimumArityTypeError(exceptionState, 1, info.Length());
6456 exceptionState.throwIfNeeded(); 6512 exceptionState.throwIfNeeded();
6457 return; 6513 return;
6458 } 6514 }
6459 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6515 TestObject* impl = V8TestObject::toImpl(info.Holder());
6460 StringOrArrayBufferOrArrayBufferView arg; 6516 StringOrArrayBufferOrArrayBufferView arg;
(...skipping 3794 matching lines...) Expand 10 before | Expand all | Expand 10 after
10255 {"htmlElementAttribute", TestObjectV8Internal::htmlElementAttributeAttribute GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 10311 {"htmlElementAttribute", TestObjectV8Internal::htmlElementAttributeAttribute GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10256 {"stringArrayAttribute", TestObjectV8Internal::stringArrayAttributeAttribute GetterCallback, TestObjectV8Internal::stringArrayAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance}, 10312 {"stringArrayAttribute", TestObjectV8Internal::stringArrayAttributeAttribute GetterCallback, TestObjectV8Internal::stringArrayAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance},
10257 {"testInterfaceEmptyArrayAttribute", TestObjectV8Internal::testInterfaceEmpt yArrayAttributeAttributeGetterCallback, TestObjectV8Internal::testInterfaceEmpty ArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E xposedToAllScripts, V8DOMConfiguration::OnInstance}, 10313 {"testInterfaceEmptyArrayAttribute", TestObjectV8Internal::testInterfaceEmpt yArrayAttributeAttributeGetterCallback, TestObjectV8Internal::testInterfaceEmpty ArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E xposedToAllScripts, V8DOMConfiguration::OnInstance},
10258 {"floatArrayAttribute", TestObjectV8Internal::floatArrayAttributeAttributeGe tterCallback, TestObjectV8Internal::floatArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance}, 10314 {"floatArrayAttribute", TestObjectV8Internal::floatArrayAttributeAttributeGe tterCallback, TestObjectV8Internal::floatArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
10259 {"stringOrNullAttribute", TestObjectV8Internal::stringOrNullAttributeAttribu teGetterCallback, TestObjectV8Internal::stringOrNullAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance}, 10315 {"stringOrNullAttribute", TestObjectV8Internal::stringOrNullAttributeAttribu teGetterCallback, TestObjectV8Internal::stringOrNullAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance},
10260 {"longOrNullAttribute", TestObjectV8Internal::longOrNullAttributeAttributeGe tterCallback, TestObjectV8Internal::longOrNullAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance}, 10316 {"longOrNullAttribute", TestObjectV8Internal::longOrNullAttributeAttributeGe tterCallback, TestObjectV8Internal::longOrNullAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
10261 {"testInterfaceOrNullAttribute", TestObjectV8Internal::testInterfaceOrNullAt tributeAttributeGetterCallback, TestObjectV8Internal::testInterfaceOrNullAttribu teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS cripts, V8DOMConfiguration::OnInstance}, 10317 {"testInterfaceOrNullAttribute", TestObjectV8Internal::testInterfaceOrNullAt tributeAttributeGetterCallback, TestObjectV8Internal::testInterfaceOrNullAttribu teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS cripts, V8DOMConfiguration::OnInstance},
10262 {"testEnumAttribute", TestObjectV8Internal::testEnumAttributeAttributeGetter Callback, TestObjectV8Internal::testEnumAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns tance}, 10318 {"testEnumAttribute", TestObjectV8Internal::testEnumAttributeAttributeGetter Callback, TestObjectV8Internal::testEnumAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns tance},
10263 {"eventHandlerAttribute", TestObjectV8Internal::eventHandlerAttributeAttribu teGetterCallback, TestObjectV8Internal::eventHandlerAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance}, 10319 {"eventHandlerAttribute", TestObjectV8Internal::eventHandlerAttributeAttribu teGetterCallback, TestObjectV8Internal::eventHandlerAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance},
10264 {"doubleOrStringAttribute", TestObjectV8Internal::doubleOrStringAttributeAtt ributeGetterCallback, TestObjectV8Internal::doubleOrStringAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo nfiguration::OnInstance}, 10320 {"doubleOrStringAttribute", TestObjectV8Internal::doubleOrStringAttributeAtt ributeGetterCallback, TestObjectV8Internal::doubleOrStringAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo nfiguration::OnInstance},
10321 {"doubleOrStringOrNullAttribute", TestObjectV8Internal::doubleOrStringOrNull AttributeAttributeGetterCallback, TestObjectV8Internal::doubleOrStringOrNullAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance},
10265 {"activityLoggingAccessForAllWorldsLongAttribute", TestObjectV8Internal::act ivityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8 Internal::activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration ::OnInstance}, 10322 {"activityLoggingAccessForAllWorldsLongAttribute", TestObjectV8Internal::act ivityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8 Internal::activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration ::OnInstance},
10266 {"activityLoggingGetterForAllWorldsLongAttribute", TestObjectV8Internal::act ivityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8 Internal::activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration ::OnInstance}, 10323 {"activityLoggingGetterForAllWorldsLongAttribute", TestObjectV8Internal::act ivityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8 Internal::activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration ::OnInstance},
10267 {"activityLoggingSetterForAllWorldsLongAttribute", TestObjectV8Internal::act ivityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8 Internal::activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration ::OnInstance}, 10324 {"activityLoggingSetterForAllWorldsLongAttribute", TestObjectV8Internal::act ivityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8 Internal::activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration ::OnInstance},
10268 {"cachedAttributeAnyAttribute", TestObjectV8Internal::cachedAttributeAnyAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedAttributeAnyAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance}, 10325 {"cachedAttributeAnyAttribute", TestObjectV8Internal::cachedAttributeAnyAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedAttributeAnyAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance},
10269 {"cachedArrayAttribute", TestObjectV8Internal::cachedArrayAttributeAttribute GetterCallback, TestObjectV8Internal::cachedArrayAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance}, 10326 {"cachedArrayAttribute", TestObjectV8Internal::cachedArrayAttributeAttribute GetterCallback, TestObjectV8Internal::cachedArrayAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance},
10270 {"cachedStringOrNoneAttribute", TestObjectV8Internal::cachedStringOrNoneAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedStringOrNoneAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance}, 10327 {"cachedStringOrNoneAttribute", TestObjectV8Internal::cachedStringOrNoneAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedStringOrNoneAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance},
10271 {"callWithExecutionContextAnyAttribute", TestObjectV8Internal::callWithExecu tionContextAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithEx ecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 10328 {"callWithExecutionContextAnyAttribute", TestObjectV8Internal::callWithExecu tionContextAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithEx ecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10272 {"callWithScriptStateAnyAttribute", TestObjectV8Internal::callWithScriptStat eAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithScriptStateA nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnInstance}, 10329 {"callWithScriptStateAnyAttribute", TestObjectV8Internal::callWithScriptStat eAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithScriptStateA nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnInstance},
10273 {"callWithExecutionContextAndScriptStateAnyAttribute", TestObjectV8Internal: :callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCallback, Test ObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnInstance}, 10330 {"callWithExecutionContextAndScriptStateAnyAttribute", TestObjectV8Internal: :callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCallback, Test ObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnInstance},
10274 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectV8Internal::chec kSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance }, 10331 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectV8Internal::chec kSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance },
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
10442 {"voidMethodSequenceSequenceDOMStringArg", TestObjectV8Internal::voidMethodS equenceSequenceDOMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAl lScripts}, 10499 {"voidMethodSequenceSequenceDOMStringArg", TestObjectV8Internal::voidMethodS equenceSequenceDOMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAl lScripts},
10443 {"nullableLongMethod", TestObjectV8Internal::nullableLongMethodMethodCallbac k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10500 {"nullableLongMethod", TestObjectV8Internal::nullableLongMethodMethodCallbac k, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10444 {"nullableStringMethod", TestObjectV8Internal::nullableStringMethodMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10501 {"nullableStringMethod", TestObjectV8Internal::nullableStringMethodMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10445 {"nullableTestInterfaceMethod", TestObjectV8Internal::nullableTestInterfaceM ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10502 {"nullableTestInterfaceMethod", TestObjectV8Internal::nullableTestInterfaceM ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10446 {"nullableLongSequenceMethod", TestObjectV8Internal::nullableLongSequenceMet hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10503 {"nullableLongSequenceMethod", TestObjectV8Internal::nullableLongSequenceMet hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10447 {"testInterfaceGarbageCollectedOrDOMStringMethod", TestObjectV8Internal::tes tInterfaceGarbageCollectedOrDOMStringMethodMethodCallback, 0, 0, V8DOMConfigurat ion::ExposedToAllScripts}, 10504 {"testInterfaceGarbageCollectedOrDOMStringMethod", TestObjectV8Internal::tes tInterfaceGarbageCollectedOrDOMStringMethodMethodCallback, 0, 0, V8DOMConfigurat ion::ExposedToAllScripts},
10448 {"testInterfaceWillBeGarbageCollectedOrTestDictionaryMethod", TestObjectV8In ternal::testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10505 {"testInterfaceWillBeGarbageCollectedOrTestDictionaryMethod", TestObjectV8In ternal::testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10449 {"booleanOrDOMStringOrUnrestrictedDoubleMethod", TestObjectV8Internal::boole anOrDOMStringOrUnrestrictedDoubleMethodMethodCallback, 0, 0, V8DOMConfiguration: :ExposedToAllScripts}, 10506 {"booleanOrDOMStringOrUnrestrictedDoubleMethod", TestObjectV8Internal::boole anOrDOMStringOrUnrestrictedDoubleMethodMethodCallback, 0, 0, V8DOMConfiguration: :ExposedToAllScripts},
10450 {"testInterfaceOrLongMethod", TestObjectV8Internal::testInterfaceOrLongMetho dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10507 {"testInterfaceOrLongMethod", TestObjectV8Internal::testInterfaceOrLongMetho dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10451 {"voidMethodDOMStringOrDouble", TestObjectV8Internal::voidMethodDOMStringOrD oubleMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10508 {"voidMethodDOMStringOrDouble", TestObjectV8Internal::voidMethodDOMStringOrD oubleMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10509 {"voidMethodDOMStringOrDoubleOrNull", TestObjectV8Internal::voidMethodDOMStr ingOrDoubleOrNullMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10452 {"voidMethodDOMStringOrArrayBufferOrArrayBufferView", TestObjectV8Internal:: voidMethodDOMStringOrArrayBufferOrArrayBufferViewMethodCallback, 0, 1, V8DOMConf iguration::ExposedToAllScripts}, 10510 {"voidMethodDOMStringOrArrayBufferOrArrayBufferView", TestObjectV8Internal:: voidMethodDOMStringOrArrayBufferOrArrayBufferViewMethodCallback, 0, 1, V8DOMConf iguration::ExposedToAllScripts},
10453 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe stInterfaceEmptyOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllS cripts}, 10511 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe stInterfaceEmptyOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllS cripts},
10454 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC allbackInterfaceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts }, 10512 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC allbackInterfaceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts },
10455 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::Exp osedToAllScripts}, 10513 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::Exp osedToAllScripts},
10456 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed ToAllScripts}, 10514 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed ToAllScripts},
10457 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10515 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10458 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10516 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10459 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts}, 10517 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts},
10460 {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10518 {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10461 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts}, 10519 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts},
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
11240 return false; 11298 return false;
11241 11299
11242 ScriptState::Scope scope(scriptState); 11300 ScriptState::Scope scope(scriptState);
11243 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11301 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
11244 11302
11245 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11303 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11246 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11304 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11247 } 11305 }
11248 11306
11249 } // namespace blink 11307 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698