From c7275edc26880cb097fd086b96d4ce09fff6551b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 9 Oct 2015 14:54:26 +0100 Subject: Add automaticaly generated property setter and getters to HTMLAppletElement --- Docs/UnimplementedJavascript.txt | 18 ------------------ javascript/duktape/HTMLAppletElement.bnd | 30 ++++++++++++++++++++++++++++++ javascript/duktape/netsurf.bnd | 5 +++-- 3 files changed, 33 insertions(+), 20 deletions(-) create mode 100644 javascript/duktape/HTMLAppletElement.bnd diff --git a/Docs/UnimplementedJavascript.txt b/Docs/UnimplementedJavascript.txt index 53f7abc66..70afb41c1 100644 --- a/Docs/UnimplementedJavascript.txt +++ b/Docs/UnimplementedJavascript.txt @@ -571,28 +571,10 @@ getter HTMLAnchorElement::type(string);\n setter HTMLAnchorElement::type(string);\n getter HTMLAnchorElement::username(user);\n setter HTMLAnchorElement::username(user);\n -getter HTMLAppletElement::align(string);\n -setter HTMLAppletElement::align(string);\n -getter HTMLAppletElement::alt(string);\n -setter HTMLAppletElement::alt(string);\n -getter HTMLAppletElement::archive(string);\n -setter HTMLAppletElement::archive(string);\n -getter HTMLAppletElement::codeBase(string);\n -setter HTMLAppletElement::codeBase(string);\n -getter HTMLAppletElement::code(string);\n -setter HTMLAppletElement::code(string);\n -getter HTMLAppletElement::height(string);\n -setter HTMLAppletElement::height(string);\n getter HTMLAppletElement::hspace(long);\n setter HTMLAppletElement::hspace(long);\n -getter HTMLAppletElement::name(string);\n -setter HTMLAppletElement::name(string);\n -getter HTMLAppletElement::object(string);\n -setter HTMLAppletElement::object(string);\n getter HTMLAppletElement::vspace(long);\n setter HTMLAppletElement::vspace(long);\n -getter HTMLAppletElement::width(string);\n -setter HTMLAppletElement::width(string);\n getter HTMLAreaElement::alt(string);\n setter HTMLAreaElement::alt(string);\n getter HTMLAreaElement::coords(string);\n diff --git a/javascript/duktape/HTMLAppletElement.bnd b/javascript/duktape/HTMLAppletElement.bnd new file mode 100644 index 000000000..8bf3ff2f7 --- /dev/null +++ b/javascript/duktape/HTMLAppletElement.bnd @@ -0,0 +1,30 @@ +/* HTML applet 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 HTMLAppletElement(struct dom_html_element *html_applet_element::html_element); + +getter HTMLAppletElement::align(); +setter HTMLAppletElement::align(); +getter HTMLAppletElement::alt(); +setter HTMLAppletElement::alt(); +getter HTMLAppletElement::archive(); +setter HTMLAppletElement::archive(); +getter HTMLAppletElement::codeBase(); +setter HTMLAppletElement::codeBase(); +getter HTMLAppletElement::code(); +setter HTMLAppletElement::code(); +getter HTMLAppletElement::height(); +setter HTMLAppletElement::height(); +getter HTMLAppletElement::name(); +setter HTMLAppletElement::name(); +getter HTMLAppletElement::object(); +setter HTMLAppletElement::object(); +getter HTMLAppletElement::width(); +setter HTMLAppletElement::width(); diff --git a/javascript/duktape/netsurf.bnd b/javascript/duktape/netsurf.bnd index 829dc965d..33a60557a 100644 --- a/javascript/duktape/netsurf.bnd +++ b/javascript/duktape/netsurf.bnd @@ -61,9 +61,11 @@ struct dom_html_br_element; #include "HTMLCollection.bnd" #include "Location.bnd" #include "Navigator.bnd" + +#include "HTMLAnchorElement.bnd" +#include "HTMLAppletElement.bnd" #include "HTMLBRElement.bnd" #include "HTMLHRElement.bnd" -#include "HTMLAnchorElement.bnd" /* specialisations of html_element */ init HTMLUnknownElement(struct dom_html_element *html_unknown_element::html_element); @@ -72,7 +74,6 @@ init HTMLDirectoryElement(struct dom_html_element *html_directory_element::html_ init HTMLFrameElement(struct dom_html_element *html_frame_element::html_element); init HTMLFrameSetElement(struct dom_html_element *html_frame_set_element::html_element); init HTMLMarqueeElement(struct dom_html_element *html_marquee_element::html_element); -init HTMLAppletElement(struct dom_html_element *html_applet_element::html_element); init HTMLCanvasElement(struct dom_html_element *html_canvas_element::html_element); init HTMLTemplateElement(struct dom_html_element *html_template_element::html_element); init HTMLScriptElement(struct dom_html_element *html_script_element::html_element); -- cgit v1.2.3