static void supplementalStr2AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { v8::Handle<v8::Object> holder = info.Holder(); TestInterface* impl = V8TestInterface::toNative(holder); ASSERT(impl); v8SetReturnValueString(info, TestPartialInterface::supplementalStr2(*impl), info.GetIsolate()); }
static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { v8::Handle<v8::Object> holder = info.Holder(); TestInterface* impl = V8TestInterface::toNative(holder); ASSERT(impl); v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribute(*impl), info.GetIsolate()); }
static void readonlyStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { v8::Local<v8::Object> holder = info.Holder(); TestException* impl = V8TestException::toImpl(holder); v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolate()); }
static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo<v8::Value>& info) { TestSpecialOperationsNotEnumerable* impl = V8TestSpecialOperationsNotEnumerable::toNative(info.Holder()); String result = impl->anonymousIndexedGetter(index); if (result.isNull()) return; v8SetReturnValueString(info, result, info.GetIsolate()); }
static void stringAttrWithGetterExceptionAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttrWithGetterException", "TestTypedefs", info.Holder(), info.GetIsolate()); String jsValue = imp->stringAttrWithGetterException(exceptionState); if (UNLIKELY(exceptionState.throwIfNeeded())) return; v8SetReturnValueString(info, jsValue, info.GetIsolate()); }
static void funcTestInterfaceImplementedAsParamMethod(const v8::FunctionCallbackInfo<v8::Value>& args) { if (UNLIKELY(args.Length() < 1)) { throwTypeError(ExceptionMessages::failedToExecute("funcTestInterfaceImplementedAsParam", "RealClass", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsolate()); return; } RealClass* imp = V8TestInterfaceImplementedAs::toNative(args.Holder()); V8TRYCATCH_VOID(RealClass*, orange, V8TestInterfaceImplementedAs::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8TestInterfaceImplementedAs::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); v8SetReturnValueString(args, imp->funcTestInterfaceImplementedAsParam(orange), args.GetIsolate()); return; }
static void func1Method(const v8::FunctionCallbackInfo<v8::Value>& args) { if (UNLIKELY(args.Length() < 1)) { throwTypeError(ExceptionMessages::failedToExecute("func1", "RealClass", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsolate()); return; } RealClass* imp = V8TestInterfaceImplementedAs::toNative(args.Holder()); V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, a, args[0]); v8SetReturnValueString(args, imp->func1(a), args.GetIsolate()); return; }
void V8XMLHttpRequest::responseTextAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>& info) { XMLHttpRequest* xmlHttpRequest = V8XMLHttpRequest::toNative(info.Holder()); ExceptionState exceptionState(ExceptionState::GetterContext, "responseText", "XMLHttpRequest", info.Holder(), info.GetIsolate()); ScriptString text = xmlHttpRequest->responseText(exceptionState); if (exceptionState.throwIfNeeded()) return; if (text.isEmpty()) { v8SetReturnValueString(info, emptyString(), info.GetIsolate()); return; } v8SetReturnValue(info, text.v8Value()); }
static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) { if (info.Holder()->HasRealNamedProperty(name)) return; if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) return; TestSpecialOperationsNotEnumerable* impl = V8TestSpecialOperationsNotEnumerable::toNative(info.Holder()); AtomicString propertyName = toCoreAtomicString(name); String result = impl->anonymousNamedGetter(propertyName); if (result.isNull()) return; v8SetReturnValueString(info, result, info.GetIsolate()); }
void V8XSLTProcessor::getParameterMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args) { if (isUndefinedOrNull(args[1])) return; XSLTProcessor* imp = V8XSLTProcessor::toNative(args.Holder()); String namespaceURI = toWebCoreString(args[0]); String localName = toWebCoreString(args[1]); String result = imp->getParameter(namespaceURI, localName); if (result.isNull()) return; v8SetReturnValueString(args, result, args.GetIsolate()); }
void V8XSLTProcessor::getParameterMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info) { if (isUndefinedOrNull(info[1])) return; TOSTRING_VOID(V8StringResource<>, namespaceURI, info[0]); TOSTRING_VOID(V8StringResource<>, localName, info[1]); XSLTProcessor* impl = V8XSLTProcessor::toNative(info.Holder()); String result = impl->getParameter(namespaceURI, localName); if (result.isNull()) return; v8SetReturnValueString(info, result, info.GetIsolate()); }
static void hrefThrowsAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { v8::Local<v8::Object> holder = info.Holder(); TestNode* impl = V8TestNode::toImpl(holder); v8SetReturnValueString(info, impl->hrefThrows(), info.GetIsolate()); }
static void stringAttrWithSetterExceptionAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); v8SetReturnValueString(info, imp->stringAttrWithSetterException(), info.GetIsolate()); }
static void reflectStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { Element* imp = V8Element::toNative(info.Holder()); v8SetReturnValueString(info, imp->fastGetAttribute(HTMLNames::reflectstringattributeAttr), info.GetIsolate()); }
static void reflectUrlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { TestInterfaceNode* imp = V8TestInterfaceNode::toNative(info.Holder()); v8SetReturnValueString(info, imp->getURLAttribute(HTMLNames::reflecturlstringattributeAttr), info.GetIsolate()); }
static void implementsStaticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { v8SetReturnValueString(info, TestImplements::implementsStaticStringAttribute(), info.GetIsolate()); }
static void nameAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) { TestException* imp = V8TestException::toNative(info.Holder()); v8SetReturnValueString(info, imp->name(), info.GetIsolate()); return; }
static void supplementalStaticAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { v8SetReturnValueString(info, TestPartialInterface::supplementalStaticAttr(), info.GetIsolate()); }
static void staticStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { v8SetReturnValueString(info, TestInterfaceOriginTrialEnabled::staticStringAttribute(), info.GetIsolate()); }
static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { TestException* impl = V8TestException::toNative(info.Holder()); v8SetReturnValueString(info, impl->toString(), info.GetIsolate()); }
static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); v8SetReturnValueString(info, impl->stringifierMethod(), info.GetIsolate()); }
static void attr2AttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) { TestEventConstructor* imp = V8TestEventConstructor::toNative(info.Holder()); v8SetReturnValueString(info, imp->attr2(), info.GetIsolate()); return; }
static void reflectUrlStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { v8::Local<v8::Object> holder = info.Holder(); TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflecturlstringattributeAttr), info.GetIsolate()); }
static void reflectStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { v8::Local<v8::Object> holder = info.Holder(); Element* impl = V8Element::toImpl(holder); v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::reflectstringattributeAttr), info.GetIsolate()); }
static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { TestInterface* imp = V8TestInterface::toNative(info.Holder()); v8SetReturnValueString(info, TestImplements::implementsStringAttribute(imp), info.GetIsolate()); }
static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { TestInterfaceNode* imp = V8TestInterfaceNode::toNative(info.Holder()); v8SetReturnValueString(info, imp->stringAttribute(), info.GetIsolate()); }
static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { v8::Handle<v8::Object> holder = info.Holder(); TestException* impl = V8TestException::toNative(holder); v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolate()); }
static void supplementalStr2AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { TestInterface* imp = V8TestInterface::toNative(info.Holder()); v8SetReturnValueString(info, TestPartialInterface::supplementalStr2(imp), info.GetIsolate()); }
static void hrefCallWithAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { v8::Handle<v8::Object> holder = info.Holder(); TestNode* impl = V8TestNode::toImpl(holder); v8SetReturnValueString(info, impl->hrefCallWith(), info.GetIsolate()); }
static void typeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { v8::Local<v8::Object> holder = info.Holder(); SVGTestInterface* impl = V8SVGTestInterface::toImpl(holder); v8SetReturnValueString(info, impl->fastGetAttribute(SVGNames::typeAttr), info.GetIsolate()); }