static v8::Handle<v8::Value> onmessageAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.MessagePort.onmessage._get");
    MessagePort* imp = V8MessagePort::toNative(info.Holder());
    return imp->onmessage() ? v8::Handle<v8::Value>(static_cast<V8AbstractEventListener*>(imp->onmessage())->getListenerObject(imp->scriptExecutionContext())) : v8::Handle<v8::Value>(v8::Null());
}
Beispiel #2
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());
 }
Beispiel #3
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())));
}
Beispiel #4
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());
}
Beispiel #5
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());
 }
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);
}
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());
}
Beispiel #8
0
 static v8::Handle<v8::Value> hrefAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
   INC_STATS("DOM.HTMLAreaElement.href._get");
   HTMLAreaElement* imp = V8HTMLAreaElement::toNative(info.Holder());
   return v8String(imp->getURLAttribute(HTMLNames::hrefAttr));
 }
Beispiel #9
0
 static v8::Handle<v8::Value> noHrefAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
   INC_STATS("DOM.HTMLAreaElement.noHref._get");
   HTMLAreaElement* imp = V8HTMLAreaElement::toNative(info.Holder());
   return v8Boolean(imp->noHref());
 }
Beispiel #10
0
static v8::Handle<v8::Value> styleAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.SVGStopElement.style._get");
    SVGStopElement* imp = V8SVGStopElement::toNative(info.Holder());
    return toV8(imp->style());
}
Beispiel #11
0
 static v8::Handle<v8::Value> searchAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
   INC_STATS("DOM.HTMLAreaElement.search._get");
   HTMLAreaElement* imp = V8HTMLAreaElement::toNative(info.Holder());
   return v8String(imp->search());
 }
static void nameAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
{
    Element* imp = V8Element::toNative(info.Holder());
    V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, stringResource, value);
    imp->setAttribute(HTMLNames::nameAttr, stringResource);
}
static v8::Handle<v8::Value> nameAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    Element* imp = V8Element::toNative(info.Holder());
    return v8String(imp->getNameAttribute(), info.GetIsolate());
}
static v8::Handle<v8::Value> areasAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    HTMLMapElement* imp = V8HTMLMapElement::toNative(info.Holder());
    return toV8Fast(imp->areas(), info, imp);
}
static v8::Handle<v8::Value> hashAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    WorkerLocation* imp = V8WorkerLocation::toNative(info.Holder());
    return v8String(imp->hash(), info.GetIsolate());
}
Beispiel #16
0
 static v8::Handle<v8::Value> heightAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
   INC_STATS("DOM.ClientRect.height._get");
   ClientRect* imp = V8ClientRect::toNative(info.Holder());
   return v8::Number::New(imp->height());
 }
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());
}
Beispiel #18
0
static v8::Handle<v8::Value> typeAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
    INC_STATS("DOM.Connection.type._get");
    Connection* imp = V8Connection::toNative(info.Holder());
    return v8::Integer::New(imp->type());
}
Beispiel #19
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()));
}
static v8::Handle<v8::Value> mediaTextAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.MediaList.mediaText._get");
    MediaList* imp = V8MediaList::toNative(info.Holder());
    return v8StringOrNull(imp->mediaText());
}
Beispiel #21
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());
 }
static v8::Handle<v8::Value> lengthAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.MediaList.length._get");
    MediaList* imp = V8MediaList::toNative(info.Holder());
    return v8::Integer::NewFromUnsigned(imp->length());
}
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());
}
void V8Event::valueAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
{
    Event* event = V8Event::toNative(info.Holder());
    event->setDefaultPrevented(!value->BooleanValue());
}
Beispiel #25
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());
 }
Beispiel #26
0
static v8::Handle<v8::Value> modeAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.IDBTransaction.mode._get");
    IDBTransaction* imp = V8IDBTransaction::toNative(info.Holder());
    return v8::Integer::New(imp->mode());
}
Beispiel #27
0
static v8::Handle<v8::Value> animatedNormalizedPathSegListAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.SVGPathElement.animatedNormalizedPathSegList._get");
    SVGPathElement* imp = V8SVGPathElement::toNative(info.Holder());
    return toV8(WTF::getPtr(imp->animatedNormalizedPathSegList()));
}
Beispiel #28
0
static v8::Handle<v8::Value> oncompleteAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.IDBTransaction.oncomplete._get");
    IDBTransaction* imp = V8IDBTransaction::toNative(info.Holder());
    return imp->oncomplete() ? v8::Handle<v8::Value>(static_cast<V8AbstractEventListener*>(imp->oncomplete())->getListenerObject(imp->scriptExecutionContext())) : v8::Handle<v8::Value>(v8::Null());
}
Beispiel #29
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());
}
 // notification.icon
 static v8::Handle<Value> GetIcon(v8::Local<v8::String> property, const v8::AccessorInfo& info) {
     // Extract the C++ request object from the JavaScript wrapper.
     Gtknotify* gtknotify_instance = node::ObjectWrap::Unwrap<Gtknotify>(info.Holder());
     return v8::String::New(gtknotify_instance->icon.c_str());
 }