From d01cecdf7f341aeb4920437c0e644059c4b7090b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 13 Oct 2015 09:22:46 +0100 Subject: [PATCH] add automaticaly generated property setter and getters to HTMLFrameElement --- Docs/UnimplementedJavascript.txt | 16 ----------- javascript/duktape/HTMLFrameElement.bnd | 35 +++++++++++++++++++++++++ javascript/duktape/netsurf.bnd | 2 +- 3 files changed, 36 insertions(+), 17 deletions(-) create mode 100644 javascript/duktape/HTMLFrameElement.bnd diff --git a/Docs/UnimplementedJavascript.txt b/Docs/UnimplementedJavascript.txt index f6220ca39..1faa769fc 100644 --- a/Docs/UnimplementedJavascript.txt +++ b/Docs/UnimplementedJavascript.txt @@ -887,22 +887,6 @@ method HTMLFormElement::reset();\n method HTMLFormElement::submit();\n getter HTMLFrameElement::contentDocument(user);\n getter HTMLFrameElement::contentWindow(user);\n -getter HTMLFrameElement::frameBorder(string);\n -setter HTMLFrameElement::frameBorder(string);\n -getter HTMLFrameElement::longDesc(string);\n -setter HTMLFrameElement::longDesc(string);\n -getter HTMLFrameElement::marginHeight(string);\n -setter HTMLFrameElement::marginHeight(string);\n -getter HTMLFrameElement::marginWidth(string);\n -setter HTMLFrameElement::marginWidth(string);\n -getter HTMLFrameElement::name(string);\n -setter HTMLFrameElement::name(string);\n -getter HTMLFrameElement::noResize(boolean);\n -setter HTMLFrameElement::noResize(boolean);\n -getter HTMLFrameElement::scrolling(string);\n -setter HTMLFrameElement::scrolling(string);\n -getter HTMLFrameElement::src(string);\n -setter HTMLFrameElement::src(string);\n getter HTMLFrameSetElement::cols(string);\n setter HTMLFrameSetElement::cols(string);\n getter HTMLFrameSetElement::onafterprint(user);\n diff --git a/javascript/duktape/HTMLFrameElement.bnd b/javascript/duktape/HTMLFrameElement.bnd new file mode 100644 index 000000000..2b1d84d77 --- /dev/null +++ b/javascript/duktape/HTMLFrameElement.bnd @@ -0,0 +1,35 @@ +/* HTML form 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 HTMLFrameElement(struct dom_html_element *html_frame_element::html_element); + +getter HTMLFrameElement::frameBorder(); +setter HTMLFrameElement::frameBorder(); + +getter HTMLFrameElement::longDesc(); +setter HTMLFrameElement::longDesc(); + +getter HTMLFrameElement::marginHeight(); +setter HTMLFrameElement::marginHeight(); + +getter HTMLFrameElement::marginWidth(); +setter HTMLFrameElement::marginWidth(); + +getter HTMLFrameElement::name(); +setter HTMLFrameElement::name(); + +getter HTMLFrameElement::noResize(); +setter HTMLFrameElement::noResize(); + +getter HTMLFrameElement::scrolling(); +setter HTMLFrameElement::scrolling(); + +getter HTMLFrameElement::src(); +setter HTMLFrameElement::src(); diff --git a/javascript/duktape/netsurf.bnd b/javascript/duktape/netsurf.bnd index c60b66752..b9da3a449 100644 --- a/javascript/duktape/netsurf.bnd +++ b/javascript/duktape/netsurf.bnd @@ -72,12 +72,12 @@ struct dom_html_br_element; #include "HTMLElement.bnd" #include "HTMLFontElement.bnd" #include "HTMLFormElement.bnd" +#include "HTMLFrameElement.bnd" #include "HTMLHRElement.bnd" /* specialisations of html_element */ init HTMLUnknownElement(struct dom_html_element *html_unknown_element::html_element); init HTMLDirectoryElement(struct dom_html_element *html_directory_element::html_element); -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 HTMLCanvasElement(struct dom_html_element *html_canvas_element::html_element);