static v8::Handle<v8::Value> animValAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    SVGAnimatedLength* imp = V8SVGAnimatedLength::toNative(info.Holder());
    return toV8Fast(static_cast<SVGPropertyTearOff<SVGLength>*>(imp->animVal()), info, imp);
}
Exemplo n.º 2
0
v8::Handle<v8::Value> V8NodeList::lengthAttrGetter(v8::Local<v8::String> property, const v8::AccessorInfo& info) {
	v8::Local<v8::Object> self = info.Holder();
	struct V8NodeListPrivate* privData = V8DOM::toClassPtr<V8NodeListPrivate >(self->GetInternalField(0));

	return v8::Integer::New(privData->nativeObj->getLength());
}
static v8::Handle<v8::Value> xAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    SVGFEImageElement* imp = V8SVGFEImageElement::toNative(info.Holder());
    return toV8Fast(imp->xAnimated(), info, imp);
}
Exemplo n.º 4
0
static v8::Handle<v8::Value> messageAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.SQLException.message._get");
    SQLException* imp = V8SQLException::toNative(info.Holder());
    return v8String(imp->message());
}
Exemplo n.º 5
0
                static v8::Handle<v8::Array> Enumerator(const v8::AccessorInfo &info) {
                    v8::HandleScope handle_scope;

                    Osmium::Javascript::Way::Wrapper *self = (Osmium::Javascript::Way::Wrapper *) v8::Local<v8::External>::Cast(info.Holder()->GetInternalField(0))->Value();

                    const osm_sequence_id_t num_nodes = self->object->node_count();
                    v8::Local<v8::Array> array = v8::Array::New(num_nodes);

                    for (osm_sequence_id_t i=0; i < num_nodes; i++) {
                        v8::Local<v8::Integer> ii = v8::Integer::New(i);
                        array->Set(ii, ii);
                    }

                    return handle_scope.Close(array);
                }
Exemplo n.º 6
0
static v8::Handle<v8::Value> loopAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.AudioBufferSourceNode.loop._get");
    AudioBufferSourceNode* imp = V8AudioBufferSourceNode::toNative(info.Holder());
    return v8Boolean(imp->loop());
}
Exemplo n.º 7
0
 static v8::Handle<v8::Value> alignAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
   INC_STATS("DOM.HTMLDivElement.align._get");
   HTMLDivElement* imp = V8HTMLDivElement::toNative(info.Holder());
   return v8String(imp->align());
 }
Exemplo n.º 8
0
 static v8::Handle<v8::Value> typeAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
   INC_STATS("DOM.HTMLDataGridColElement.type._get");
   HTMLDataGridColElement* imp = V8HTMLDataGridColElement::toNative(info.Holder());
   return v8String(imp->type());
 }
Exemplo n.º 9
0
 static v8::Handle<v8::Value> sortDirectionAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
   INC_STATS("DOM.HTMLDataGridColElement.sortDirection._get");
   HTMLDataGridColElement* imp = V8HTMLDataGridColElement::toNative(info.Holder());
   return v8::Integer::New(imp->sortDirection());
 }
Exemplo n.º 10
0
static v8::Handle<v8::Value> nameAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.TestException.name._get");
    TestException* imp = V8TestException::toNative(info.Holder());
    return v8String(imp->name(), info.GetIsolate());
}
static v8::Handle<v8::Value> byteLengthAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    ArrayBuffer* imp = V8ArrayBuffer::toNative(info.Holder());
    return v8UnsignedInteger(imp->byteLength(), info.GetIsolate());
}
Exemplo n.º 12
0
 static v8::Handle<v8::Value> compactAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
   INC_STATS("DOM.HTMLMenuElement.compact._get");
   HTMLMenuElement* imp = V8HTMLMenuElement::toNative(info.Holder());
   return v8Boolean(imp->compact());
 }
Exemplo n.º 13
0
static v8::Handle<v8::Value> numberOfItemsAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.SVGPointList.numberOfItems._get");
    SVGPointList* imp = V8SVGPointList::toNative(info.Holder());
    return v8::Integer::NewFromUnsigned(imp->numberOfItems());
}
Exemplo n.º 14
0
static v8::Handle<v8::Value> connectEndAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.Timing.connectEnd._get");
    Timing* imp = V8Timing::toNative(info.Holder());
    return v8::Number::New(static_cast<double>(imp->connectEnd()));
}
Exemplo n.º 15
0
v8::Handle<v8::Value> V8HTMLOutputElement::htmlForAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.HTMLOutputElement.htmlFor._get");
    HTMLOutputElement* imp = V8HTMLOutputElement::toNative(info.Holder());
    return toV8(imp->htmlFor(), info.Holder(), info.GetIsolate());
}
Exemplo n.º 16
0
 static v8::Handle<v8::Value> primaryAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
   INC_STATS("DOM.HTMLDataGridColElement.primary._get");
   HTMLDataGridColElement* imp = V8HTMLDataGridColElement::toNative(info.Holder());
   return v8Boolean(imp->primary());
 }
Exemplo n.º 17
0
void V8HTMLOutputElement::htmlForAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.HTMLOutputElement.htmlFor._set");
    HTMLOutputElement* imp = V8HTMLOutputElement::toNative(info.Holder());
    imp->setFor(toWebCoreString(value));
}
Exemplo n.º 18
0
static v8::Handle<v8::Value> systemLanguageAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.SVGPathElement.systemLanguage._get");
    SVGPathElement* imp = V8SVGPathElement::toNative(info.Holder());
    return toV8(WTF::getPtr(SVGStaticListPropertyTearOff<SVGStringList>::create(imp, imp->systemLanguage())));
}
Exemplo n.º 19
0
 static v8::Handle<v8::Value> totalSizeAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
   INC_STATS("DOM.XMLHttpRequestProgressEvent.totalSize._get");
   XMLHttpRequestProgressEvent* imp = V8XMLHttpRequestProgressEvent::toNative(info.Holder());
   return v8::Integer::NewFromUnsigned(imp->totalSize());
 }
Exemplo n.º 20
0
static v8::Handle<v8::Value> xmlspaceAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.SVGPathElement.xmlspace._get");
    SVGPathElement* imp = V8SVGPathElement::toNative(info.Holder());
    return v8String(imp->xmlspace());
}
Exemplo n.º 21
0
static v8::Handle<v8::Value> codeAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.SQLException.code._get");
    SQLException* imp = V8SQLException::toNative(info.Holder());
    return v8::Integer::NewFromUnsigned(imp->code());
}
Exemplo n.º 22
0
static v8::Handle<v8::Value> externalResourcesRequiredAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.SVGPathElement.externalResourcesRequired._get");
    SVGPathElement* imp = V8SVGPathElement::toNative(info.Holder());
    return toV8(imp->externalResourcesRequiredAnimated());
}
Exemplo n.º 23
0
                static v8::Handle<v8::Value> Getter(uint32_t index, const v8::AccessorInfo &info) {
                    v8::HandleScope handle_scope;

                    Osmium::Javascript::Way::Wrapper *self = (Osmium::Javascript::Way::Wrapper *) v8::Local<v8::External>::Cast(info.Holder()->GetInternalField(0))->Value();
                    osm_object_id_t ref = self->object->nodes[index];
                    if (sizeof(osm_object_id_t) <= 4)
                        return handle_scope.Close(v8::Integer::New(ref));
                    else
                        return handle_scope.Close(v8::Number::New(ref));
                }
Exemplo n.º 24
0
static v8::Handle<v8::Value> farthestViewportElementAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.SVGPathElement.farthestViewportElement._get");
    SVGPathElement* imp = V8SVGPathElement::toNative(info.Holder());
    return toV8(imp->farthestViewportElement());
}
static v8::Handle<v8::Value> lengthAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    DOMNamedFlowCollection* imp = V8DOMNamedFlowCollection::toNative(info.Holder());
    return v8UnsignedInteger(imp->length(), info.GetIsolate());
}
Exemplo n.º 26
0
static v8::Handle<v8::Value> pathLengthAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.SVGPathElement.pathLength._get");
    SVGPathElement* imp = V8SVGPathElement::toNative(info.Holder());
    return toV8(imp->pathLengthAnimated());
}
static v8::Handle<v8::Value> xmlspaceAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    SVGFEImageElement* imp = V8SVGFEImageElement::toNative(info.Holder());
    return v8String(imp->xmlspace(), info.GetIsolate());
}
Exemplo n.º 28
0
static v8::Handle<v8::Value> pathSegListAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.SVGPathElement.pathSegList._get");
    SVGPathElement* imp = V8SVGPathElement::toNative(info.Holder());
    return toV8(WTF::getPtr(imp->pathSegList()));
}
static v8::Handle<v8::Value> styleAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.SVGFEConvolveMatrixElement.style._get");
    SVGFEConvolveMatrixElement* imp = V8SVGFEConvolveMatrixElement::toNative(info.Holder());
    return toV8(imp->style());
}
static v8::Handle<v8::Value> versionAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    Database* imp = V8Database::toNative(info.Holder());
    return v8String(imp->version(), info.GetIsolate());
}