| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 5447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5458 {"activityLoggedMethod1", TestObjV8Internal::activityLoggedMethod1MethodCall
back, 0, 1}, | 5458 {"activityLoggedMethod1", TestObjV8Internal::activityLoggedMethod1MethodCall
back, 0, 1}, |
| 5459 {"activityLoggedMethod2", TestObjV8Internal::activityLoggedMethod2MethodCall
back, TestObjV8Internal::activityLoggedMethod2MethodCallbackForMainWorld, 1}, | 5459 {"activityLoggedMethod2", TestObjV8Internal::activityLoggedMethod2MethodCall
back, TestObjV8Internal::activityLoggedMethod2MethodCallbackForMainWorld, 1}, |
| 5460 {"activityLoggedInIsolatedWorldMethod", TestObjV8Internal::activityLoggedInI
solatedWorldMethodMethodCallback, TestObjV8Internal::activityLoggedInIsolatedWor
ldMethodMethodCallbackForMainWorld, 1}, | 5460 {"activityLoggedInIsolatedWorldMethod", TestObjV8Internal::activityLoggedInI
solatedWorldMethodMethodCallback, TestObjV8Internal::activityLoggedInIsolatedWor
ldMethodMethodCallbackForMainWorld, 1}, |
| 5461 {"overloadedActivityLoggedMethod", TestObjV8Internal::overloadedActivityLogg
edMethodMethodCallback, TestObjV8Internal::overloadedActivityLoggedMethodMethodC
allbackForMainWorld, 1}, | 5461 {"overloadedActivityLoggedMethod", TestObjV8Internal::overloadedActivityLogg
edMethodMethodCallback, TestObjV8Internal::overloadedActivityLoggedMethodMethodC
allbackForMainWorld, 1}, |
| 5462 {"deprecatedMethod", TestObjV8Internal::deprecatedMethodMethodCallback, 0, 0
}, | 5462 {"deprecatedMethod", TestObjV8Internal::deprecatedMethodMethodCallback, 0, 0
}, |
| 5463 }; | 5463 }; |
| 5464 | 5464 |
| 5465 static const V8DOMConfiguration::ConstantConfiguration V8TestObjectConstants[] =
{ | 5465 static const V8DOMConfiguration::ConstantConfiguration V8TestObjectConstants[] =
{ |
| 5466 #if ENABLE(Condition1) | 5466 #if ENABLE(Condition1) |
| 5467 {"CONDITIONAL_CONST", 0}, | 5467 {"CONDITIONAL_CONST", 0}, |
| 5468 #endif | 5468 #endif // ENABLE(Condition1) |
| 5469 {"CONST_VALUE_0", 0}, | |
| 5470 {"CONST_VALUE_1", 1}, | |
| 5471 {"CONST_VALUE_2", 2}, | |
| 5472 {"CONST_VALUE_4", 4}, | |
| 5473 {"CONST_VALUE_8", 8}, | |
| 5474 {"CONST_VALUE_9", -1}, | |
| 5475 {"CONST_VALUE_10", "my constant string"}, | |
| 5476 {"CONST_VALUE_11", 0xffffffff}, | |
| 5477 {"CONST_VALUE_12", 0x01}, | |
| 5478 {"CONST_VALUE_13", 0X20}, | |
| 5479 {"CONST_VALUE_14", 0x1abc}, | |
| 5480 {"CONST_JAVASCRIPT", 15}, | |
| 5481 {"DEPRECATED_CONSTANT", 1}, | 5469 {"DEPRECATED_CONSTANT", 1}, |
| 5482 }; | 5470 }; |
| 5483 | 5471 |
| 5484 #if ENABLE(Condition1) | 5472 #if ENABLE(Condition1) |
| 5485 COMPILE_ASSERT(0 == TestObj::CONDITIONAL_CONST, TestObjEnumCONDITIONAL_CONSTIsWr
ongUseDoNotCheckConstants); | 5473 COMPILE_ASSERT(0 == TestObj::CONDITIONAL_CONST, TestObjEnumCONDITIONAL_CONSTIsWr
ongUseDoNotCheckConstants); |
| 5486 #endif | 5474 #endif // ENABLE(Condition1) |
| 5487 COMPILE_ASSERT(0 == TestObj::CONST_VALUE_0, TestObjEnumCONST_VALUE_0IsWrongUseDo
NotCheckConstants); | |
| 5488 COMPILE_ASSERT(1 == TestObj::CONST_VALUE_1, TestObjEnumCONST_VALUE_1IsWrongUseDo
NotCheckConstants); | |
| 5489 COMPILE_ASSERT(2 == TestObj::CONST_VALUE_2, TestObjEnumCONST_VALUE_2IsWrongUseDo
NotCheckConstants); | |
| 5490 COMPILE_ASSERT(4 == TestObj::CONST_VALUE_4, TestObjEnumCONST_VALUE_4IsWrongUseDo
NotCheckConstants); | |
| 5491 COMPILE_ASSERT(8 == TestObj::CONST_VALUE_8, TestObjEnumCONST_VALUE_8IsWrongUseDo
NotCheckConstants); | |
| 5492 COMPILE_ASSERT(-1 == TestObj::CONST_VALUE_9, TestObjEnumCONST_VALUE_9IsWrongUseD
oNotCheckConstants); | |
| 5493 COMPILE_ASSERT("my constant string" == TestObj::CONST_VALUE_10, TestObjEnumCONST
_VALUE_10IsWrongUseDoNotCheckConstants); | |
| 5494 COMPILE_ASSERT(0xffffffff == TestObj::CONST_VALUE_11, TestObjEnumCONST_VALUE_11I
sWrongUseDoNotCheckConstants); | |
| 5495 COMPILE_ASSERT(0x01 == TestObj::CONST_VALUE_12, TestObjEnumCONST_VALUE_12IsWrong
UseDoNotCheckConstants); | |
| 5496 COMPILE_ASSERT(0X20 == TestObj::CONST_VALUE_13, TestObjEnumCONST_VALUE_13IsWrong
UseDoNotCheckConstants); | |
| 5497 COMPILE_ASSERT(0x1abc == TestObj::CONST_VALUE_14, TestObjEnumCONST_VALUE_14IsWro
ngUseDoNotCheckConstants); | |
| 5498 COMPILE_ASSERT(15 == TestObj::CONST_IMPL, TestObjEnumCONST_IMPLIsWrongUseDoNotCh
eckConstants); | |
| 5499 COMPILE_ASSERT(1 == TestObj::DEPRECATED_CONSTANT, TestObjEnumDEPRECATED_CONSTANT
IsWrongUseDoNotCheckConstants); | 5475 COMPILE_ASSERT(1 == TestObj::DEPRECATED_CONSTANT, TestObjEnumDEPRECATED_CONSTANT
IsWrongUseDoNotCheckConstants); |
| 5500 | 5476 |
| 5501 void V8TestObject::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>
& args) | 5477 void V8TestObject::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>
& args) |
| 5502 { | 5478 { |
| 5503 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); | 5479 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); |
| 5504 if (!args.IsConstructCall()) { | 5480 if (!args.IsConstructCall()) { |
| 5505 throwTypeError("DOM object constructor cannot be called as a function.",
args.GetIsolate()); | 5481 throwTypeError("DOM object constructor cannot be called as a function.",
args.GetIsolate()); |
| 5506 return; | 5482 return; |
| 5507 } | 5483 } |
| 5508 | 5484 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5700 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper,
isolate, WrapperConfiguration::Independent); | 5676 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper,
isolate, WrapperConfiguration::Independent); |
| 5701 return wrapper; | 5677 return wrapper; |
| 5702 } | 5678 } |
| 5703 | 5679 |
| 5704 void V8TestObject::derefObject(void* object) | 5680 void V8TestObject::derefObject(void* object) |
| 5705 { | 5681 { |
| 5706 fromInternalPointer(object)->deref(); | 5682 fromInternalPointer(object)->deref(); |
| 5707 } | 5683 } |
| 5708 | 5684 |
| 5709 } // namespace WebCore | 5685 } // namespace WebCore |
| OLD | NEW |