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());
}
Esempio n. 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());
 }
Esempio n. 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())));
}
Esempio n. 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());
}
Esempio n. 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());
}
Esempio n. 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));
 }
Esempio n. 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());
 }
Esempio n. 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());
}
Esempio n. 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());
}
Esempio n. 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());
}
Esempio n. 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());
}
Esempio n. 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()));
}
Esempio n. 20
0
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());
}
Esempio n. 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());
 }
Esempio n. 22
0
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());
}
Esempio n. 24
0
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());
}
Esempio n. 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());
 }
Esempio n. 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());
}
Esempio n. 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()));
}
Esempio n. 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());
}
Esempio n. 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());
}
Esempio n. 30
0
 // 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());
 }