| 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 "V8TestInterface5.h" | 7 #include "V8TestInterface5.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 return v8SetReturnValueBool(info, result == DeleteSuccess); | 673 return v8SetReturnValueBool(info, result == DeleteSuccess); |
| 674 } | 674 } |
| 675 | 675 |
| 676 static void indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCal
lbackInfo<v8::Boolean>& info) | 676 static void indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCal
lbackInfo<v8::Boolean>& info) |
| 677 { | 677 { |
| 678 TestInterface5ImplementationV8Internal::indexedPropertyDeleter(index, info); | 678 TestInterface5ImplementationV8Internal::indexedPropertyDeleter(index, info); |
| 679 } | 679 } |
| 680 | 680 |
| 681 static void namedPropertyGetter(v8::Local<v8::Name> name, const v8::PropertyCall
backInfo<v8::Value>& info) | 681 static void namedPropertyGetter(v8::Local<v8::Name> name, const v8::PropertyCall
backInfo<v8::Value>& info) |
| 682 { | 682 { |
| 683 if (!name->IsString()) |
| 684 return; |
| 683 auto nameString = name.As<v8::String>(); | 685 auto nameString = name.As<v8::String>(); |
| 684 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 686 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; |
| 685 AtomicString propertyName = toCoreAtomicString(nameString); | 687 AtomicString propertyName = toCoreAtomicString(nameString); |
| 686 String result = impl->anonymousNamedGetter(propertyName); | 688 String result = impl->anonymousNamedGetter(propertyName); |
| 687 if (result.isNull()) | 689 if (result.isNull()) |
| 688 return; | 690 return; |
| 689 v8SetReturnValueString(info, result, info.GetIsolate()); | 691 v8SetReturnValueString(info, result, info.GetIsolate()); |
| 690 } | 692 } |
| 691 | 693 |
| 692 static void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::Prop
ertyCallbackInfo<v8::Value>& info) | 694 static void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::Prop
ertyCallbackInfo<v8::Value>& info) |
| 693 { | 695 { |
| 694 TestInterface5ImplementationV8Internal::namedPropertyGetter(name, info); | 696 TestInterface5ImplementationV8Internal::namedPropertyGetter(name, info); |
| 695 } | 697 } |
| 696 | 698 |
| 697 static void namedPropertySetter(v8::Local<v8::Name> name, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<v8::Value>& info) | 699 static void namedPropertySetter(v8::Local<v8::Name> name, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 698 { | 700 { |
| 701 if (!name->IsString()) |
| 702 return; |
| 699 auto nameString = name.As<v8::String>(); | 703 auto nameString = name.As<v8::String>(); |
| 700 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 704 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; |
| 701 V8StringResource<> propertyName(nameString); | 705 V8StringResource<> propertyName(nameString); |
| 702 if (!propertyName.prepare()) | 706 if (!propertyName.prepare()) |
| 703 return; | 707 return; |
| 704 V8StringResource<> propertyValue = v8Value; | 708 V8StringResource<> propertyValue = v8Value; |
| 705 if (!propertyValue.prepare()) | 709 if (!propertyValue.prepare()) |
| 706 return; | 710 return; |
| 707 bool result = impl->anonymousNamedSetter(propertyName, propertyValue); | 711 bool result = impl->anonymousNamedSetter(propertyName, propertyValue); |
| 708 if (!result) | 712 if (!result) |
| 709 return; | 713 return; |
| 710 v8SetReturnValue(info, v8Value); | 714 v8SetReturnValue(info, v8Value); |
| 711 } | 715 } |
| 712 | 716 |
| 713 static void namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) | 717 static void namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 714 { | 718 { |
| 715 TestInterface5ImplementationV8Internal::namedPropertySetter(name, v8Value, i
nfo); | 719 TestInterface5ImplementationV8Internal::namedPropertySetter(name, v8Value, i
nfo); |
| 716 } | 720 } |
| 717 | 721 |
| 718 static void namedPropertyQuery(v8::Local<v8::Name> name, const v8::PropertyCallb
ackInfo<v8::Integer>& info) | 722 static void namedPropertyQuery(v8::Local<v8::Name> name, const v8::PropertyCallb
ackInfo<v8::Integer>& info) |
| 719 { | 723 { |
| 724 if (!name->IsString()) |
| 725 return; |
| 720 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 726 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; |
| 721 AtomicString propertyName = toCoreAtomicString(name.As<v8::String>()); | 727 AtomicString propertyName = toCoreAtomicString(name.As<v8::String>()); |
| 722 v8::String::Utf8Value namedProperty(name); | 728 v8::String::Utf8Value namedProperty(name); |
| 723 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty,
"TestInterface5", info.Holder(), info.GetIsolate()); | 729 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty,
"TestInterface5", info.Holder(), info.GetIsolate()); |
| 724 bool result = impl->namedPropertyQuery(propertyName, exceptionState); | 730 bool result = impl->namedPropertyQuery(propertyName, exceptionState); |
| 725 if (exceptionState.throwIfNeeded()) | 731 if (exceptionState.throwIfNeeded()) |
| 726 return; | 732 return; |
| 727 if (!result) | 733 if (!result) |
| 728 return; | 734 return; |
| 729 v8SetReturnValueInt(info, v8::None); | 735 v8SetReturnValueInt(info, v8::None); |
| 730 } | 736 } |
| 731 | 737 |
| 732 static void namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::Prope
rtyCallbackInfo<v8::Integer>& info) | 738 static void namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::Prope
rtyCallbackInfo<v8::Integer>& info) |
| 733 { | 739 { |
| 734 TestInterface5ImplementationV8Internal::namedPropertyQuery(name, info); | 740 TestInterface5ImplementationV8Internal::namedPropertyQuery(name, info); |
| 735 } | 741 } |
| 736 | 742 |
| 737 static void namedPropertyDeleter(v8::Local<v8::Name> name, const v8::PropertyCal
lbackInfo<v8::Boolean>& info) | 743 static void namedPropertyDeleter(v8::Local<v8::Name> name, const v8::PropertyCal
lbackInfo<v8::Boolean>& info) |
| 738 { | 744 { |
| 745 if (!name->IsString()) |
| 746 return; |
| 739 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 747 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; |
| 740 AtomicString propertyName = toCoreAtomicString(name.As<v8::String>()); | 748 AtomicString propertyName = toCoreAtomicString(name.As<v8::String>()); |
| 741 DeleteResult result = impl->anonymousNamedDeleter(propertyName); | 749 DeleteResult result = impl->anonymousNamedDeleter(propertyName); |
| 742 if (result != DeleteUnknownProperty) | 750 if (result != DeleteUnknownProperty) |
| 743 return v8SetReturnValueBool(info, result == DeleteSuccess); | 751 return v8SetReturnValueBool(info, result == DeleteSuccess); |
| 744 } | 752 } |
| 745 | 753 |
| 746 static void namedPropertyDeleterCallback(v8::Local<v8::Name> name, const v8::Pro
pertyCallbackInfo<v8::Boolean>& info) | 754 static void namedPropertyDeleterCallback(v8::Local<v8::Name> name, const v8::Pro
pertyCallbackInfo<v8::Boolean>& info) |
| 747 { | 755 { |
| 748 TestInterface5ImplementationV8Internal::namedPropertyDeleter(name, info); | 756 TestInterface5ImplementationV8Internal::namedPropertyDeleter(name, info); |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet
hodMethodConfiguration); | 923 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet
hodMethodConfiguration); |
| 916 } | 924 } |
| 917 } | 925 } |
| 918 | 926 |
| 919 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O
bject> wrapper) | 927 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O
bject> wrapper) |
| 920 { | 928 { |
| 921 return toImpl(wrapper); | 929 return toImpl(wrapper); |
| 922 } | 930 } |
| 923 | 931 |
| 924 } // namespace blink | 932 } // namespace blink |
| OLD | NEW |