From 079667ee6cad0c2f2d97a3a5435c70edc72ff78e Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 13 Oct 2015 23:36:01 +0100 Subject: [PATCH] add automaticaly generated property setter and getters to HTMLObjectElement --- Docs/UnimplementedJavascript.txt | 28 ------------ javascript/duktape/HTMLObjectElement.bnd | 54 ++++++++++++++++++++++++ javascript/duktape/netsurf.bnd | 2 +- 3 files changed, 55 insertions(+), 29 deletions(-) create mode 100644 javascript/duktape/HTMLObjectElement.bnd diff --git a/Docs/UnimplementedJavascript.txt b/Docs/UnimplementedJavascript.txt index 51269ee78..9aa11398f 100644 --- a/Docs/UnimplementedJavascript.txt +++ b/Docs/UnimplementedJavascript.txt @@ -1166,49 +1166,21 @@ getter HTMLModElement::cite(string);\n setter HTMLModElement::cite(string);\n getter HTMLModElement::dateTime(string);\n setter HTMLModElement::dateTime(string);\n -getter HTMLObjectElement::align(string);\n -setter HTMLObjectElement::align(string);\n -getter HTMLObjectElement::archive(string);\n -setter HTMLObjectElement::archive(string);\n -getter HTMLObjectElement::border(string);\n -setter HTMLObjectElement::border(string);\n method HTMLObjectElement::checkValidity();\n -getter HTMLObjectElement::codeBase(string);\n -setter HTMLObjectElement::codeBase(string);\n -getter HTMLObjectElement::code(string);\n -setter HTMLObjectElement::code(string);\n -getter HTMLObjectElement::codeType(string);\n -setter HTMLObjectElement::codeType(string);\n getter HTMLObjectElement::contentDocument(user);\n getter HTMLObjectElement::contentWindow(user);\n -getter HTMLObjectElement::data(string);\n -setter HTMLObjectElement::data(string);\n -getter HTMLObjectElement::declare(boolean);\n -setter HTMLObjectElement::declare(boolean);\n getter HTMLObjectElement::form(user);\n method HTMLObjectElement::getSVGDocument();\n -getter HTMLObjectElement::height(string);\n -setter HTMLObjectElement::height(string);\n getter HTMLObjectElement::hspace(long);\n setter HTMLObjectElement::hspace(long);\n -getter HTMLObjectElement::name(string);\n -setter HTMLObjectElement::name(string);\n method HTMLObjectElement::reportValidity();\n method HTMLObjectElement::setCustomValidity();\n -getter HTMLObjectElement::standby(string);\n -setter HTMLObjectElement::standby(string);\n getter HTMLObjectElement::typeMustMatch(boolean);\n setter HTMLObjectElement::typeMustMatch(boolean);\n -getter HTMLObjectElement::type(string);\n -setter HTMLObjectElement::type(string);\n -getter HTMLObjectElement::useMap(string);\n -setter HTMLObjectElement::useMap(string);\n getter HTMLObjectElement::validationMessage(string);\n getter HTMLObjectElement::validity(user);\n getter HTMLObjectElement::vspace(long);\n setter HTMLObjectElement::vspace(long);\n -getter HTMLObjectElement::width(string);\n -setter HTMLObjectElement::width(string);\n getter HTMLObjectElement::willValidate(boolean);\n getter HTMLOListElement::compact(boolean);\n setter HTMLOListElement::compact(boolean);\n diff --git a/javascript/duktape/HTMLObjectElement.bnd b/javascript/duktape/HTMLObjectElement.bnd new file mode 100644 index 000000000..2d07a7bb2 --- /dev/null +++ b/javascript/duktape/HTMLObjectElement.bnd @@ -0,0 +1,54 @@ +/* HTML object element binding using duktape and libdom + * + * Copyright 2015 Vincent Sanders + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * Released under the terms of the MIT License, + * http://www.opensource.org/licenses/mit-license + */ + +init HTMLObjectElement(struct dom_html_element *html_object_element::html_element); + +getter HTMLObjectElement::align(); +setter HTMLObjectElement::align(); + +getter HTMLObjectElement::archive(); +setter HTMLObjectElement::archive(); + +getter HTMLObjectElement::border(); +setter HTMLObjectElement::border(); + +getter HTMLObjectElement::codeBase(); +setter HTMLObjectElement::codeBase(); + +getter HTMLObjectElement::code(); +setter HTMLObjectElement::code(); + +getter HTMLObjectElement::codeType(); +setter HTMLObjectElement::codeType(); + +getter HTMLObjectElement::data(); +setter HTMLObjectElement::data(); + +getter HTMLObjectElement::declare(); +setter HTMLObjectElement::declare(); + +getter HTMLObjectElement::height(); +setter HTMLObjectElement::height(); + +getter HTMLObjectElement::name(); +setter HTMLObjectElement::name(); + +getter HTMLObjectElement::standby(); +setter HTMLObjectElement::standby(); + +getter HTMLObjectElement::type(); +setter HTMLObjectElement::type(); + +getter HTMLObjectElement::useMap(); +setter HTMLObjectElement::useMap(); + +getter HTMLObjectElement::width(); +setter HTMLObjectElement::width(); + diff --git a/javascript/duktape/netsurf.bnd b/javascript/duktape/netsurf.bnd index 930df337b..ccca6730b 100644 --- a/javascript/duktape/netsurf.bnd +++ b/javascript/duktape/netsurf.bnd @@ -90,6 +90,7 @@ struct dom_html_br_element; #include "HTMLMarqueeElement.bnd" #include "HTMLMenuElement.bnd" #include "HTMLMetaElement.bnd" +#include "HTMLObjectElement.bnd" init HTMLUnknownElement(struct dom_html_element *html_unknown_element::html_element); init HTMLDirectoryElement(struct dom_html_element *html_directory_element::html_element); @@ -118,7 +119,6 @@ init HTMLTableElement(struct dom_html_element *html_table_element::html_element) init HTMLMediaElement(struct dom_html_element *html_media_element::html_element); init HTMLTrackElement(struct dom_html_element *html_track_element::html_element); init HTMLParamElement(struct dom_html_element *html_param_element::html_element); -init HTMLObjectElement(struct dom_html_element *html_object_element::html_element); init HTMLEmbedElement(struct dom_html_element *html_embed_element::html_element); init HTMLSourceElement(struct dom_html_element *html_source_element::html_element); init HTMLPictureElement(struct dom_html_element *html_picture_element::html_element);