From 0636ee0f209af1bbc080c87058c7e1f8191e8b15 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 10 Oct 2015 11:08:48 +0100 Subject: [PATCH] Add automaticaly generated property setter and getters to HTMLBodyElement --- Docs/UnimplementedJavascript.txt | 18 ------------------ javascript/duktape/HTMLBodyElement.bnd | 24 ++++++++++++++++++++++++ javascript/duktape/HTMLButtonElement.bnd | 18 ++++++++++++++++++ javascript/duktape/netsurf.bnd | 4 ++-- 4 files changed, 44 insertions(+), 20 deletions(-) create mode 100644 javascript/duktape/HTMLBodyElement.bnd create mode 100644 javascript/duktape/HTMLButtonElement.bnd diff --git a/Docs/UnimplementedJavascript.txt b/Docs/UnimplementedJavascript.txt index ae4f34062..91f7bfdbe 100644 --- a/Docs/UnimplementedJavascript.txt +++ b/Docs/UnimplementedJavascript.txt @@ -606,14 +606,6 @@ getter HTMLAreaElement::type(string);\n setter HTMLAreaElement::type(string);\n getter HTMLAreaElement::username(user);\n setter HTMLAreaElement::username(user);\n -getter HTMLBodyElement::aLink(string);\n -setter HTMLBodyElement::aLink(string);\n -getter HTMLBodyElement::background(string);\n -setter HTMLBodyElement::background(string);\n -getter HTMLBodyElement::bgColor(string);\n -setter HTMLBodyElement::bgColor(string);\n -getter HTMLBodyElement::link(string);\n -setter HTMLBodyElement::link(string);\n getter HTMLBodyElement::onafterprint(user);\n setter HTMLBodyElement::onafterprint(user);\n getter HTMLBodyElement::onbeforeprint(user);\n @@ -640,15 +632,9 @@ getter HTMLBodyElement::onstorage(user);\n setter HTMLBodyElement::onstorage(user);\n getter HTMLBodyElement::onunload(user);\n setter HTMLBodyElement::onunload(user);\n -getter HTMLBodyElement::text(string);\n -setter HTMLBodyElement::text(string);\n -getter HTMLBodyElement::vLink(string);\n -setter HTMLBodyElement::vLink(string);\n getter HTMLButtonElement::autofocus(boolean);\n setter HTMLButtonElement::autofocus(boolean);\n method HTMLButtonElement::checkValidity();\n -getter HTMLButtonElement::disabled(boolean);\n -setter HTMLButtonElement::disabled(boolean);\n getter HTMLButtonElement::formAction(string);\n setter HTMLButtonElement::formAction(string);\n getter HTMLButtonElement::formEnctype(string);\n @@ -663,16 +649,12 @@ getter HTMLButtonElement::form(user);\n getter HTMLButtonElement::labels(user);\n getter HTMLButtonElement::menu(user);\n setter HTMLButtonElement::menu(user);\n -getter HTMLButtonElement::name(string);\n -setter HTMLButtonElement::name(string);\n method HTMLButtonElement::reportValidity();\n method HTMLButtonElement::setCustomValidity();\n getter HTMLButtonElement::type(string);\n setter HTMLButtonElement::type(string);\n getter HTMLButtonElement::validationMessage(string);\n getter HTMLButtonElement::validity(user);\n -getter HTMLButtonElement::value(string);\n -setter HTMLButtonElement::value(string);\n getter HTMLButtonElement::willValidate(boolean);\n method HTMLCanvasElement::getContext();\n getter HTMLCanvasElement::height(long);\n diff --git a/javascript/duktape/HTMLBodyElement.bnd b/javascript/duktape/HTMLBodyElement.bnd new file mode 100644 index 000000000..a283f897c --- /dev/null +++ b/javascript/duktape/HTMLBodyElement.bnd @@ -0,0 +1,24 @@ +/* HTML body 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 HTMLBodyElement(struct dom_html_element *html_body_element::html_element); + +getter HTMLBodyElement::aLink(); +setter HTMLBodyElement::aLink(); +getter HTMLBodyElement::background(); +setter HTMLBodyElement::background(); +getter HTMLBodyElement::bgColor(); +setter HTMLBodyElement::bgColor(); +getter HTMLBodyElement::link(); +setter HTMLBodyElement::link(); +getter HTMLBodyElement::text(); +setter HTMLBodyElement::text(); +getter HTMLBodyElement::vLink(); +setter HTMLBodyElement::vLink(); diff --git a/javascript/duktape/HTMLButtonElement.bnd b/javascript/duktape/HTMLButtonElement.bnd new file mode 100644 index 000000000..53431aa04 --- /dev/null +++ b/javascript/duktape/HTMLButtonElement.bnd @@ -0,0 +1,18 @@ +/* HTML button 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 HTMLButtonElement(struct dom_html_element *html_button_element::html_element); + +getter HTMLButtonElement::disabled(); +setter HTMLButtonElement::disabled(); +getter HTMLButtonElement::name(); +setter HTMLButtonElement::name(); +getter HTMLButtonElement::value(); +setter HTMLButtonElement::value(); diff --git a/javascript/duktape/netsurf.bnd b/javascript/duktape/netsurf.bnd index e5daa81ed..dd208d373 100644 --- a/javascript/duktape/netsurf.bnd +++ b/javascript/duktape/netsurf.bnd @@ -66,6 +66,8 @@ struct dom_html_br_element; #include "HTMLAppletElement.bnd" #include "HTMLAreaElement.bnd" #include "HTMLBaseElement.bnd" +#include "HTMLBodyElement.bnd" +#include "HTMLButtonElement.bnd" #include "HTMLBRElement.bnd" #include "HTMLHRElement.bnd" @@ -94,7 +96,6 @@ init HTMLOptionElement(struct dom_html_element *html_option_element::html_elemen init HTMLOptGroupElement(struct dom_html_element *html_opt_group_element::html_element); init HTMLDataListElement(struct dom_html_element *html_data_list_element::html_element); init HTMLSelectElement(struct dom_html_element *html_select_element::html_element); -init HTMLButtonElement(struct dom_html_element *html_button_element::html_element); init HTMLInputElement(struct dom_html_element *html_input_element::html_element); init HTMLLabelElement(struct dom_html_element *html_label_element::html_element); init HTMLFormElement(struct dom_html_element *html_form_element::html_element); @@ -127,7 +128,6 @@ init HTMLQuoteElement(struct dom_html_element *html_quote_element::html_element) init HTMLPreElement(struct dom_html_element *html_pre_element::html_element); init HTMLParagraphElement(struct dom_html_element *html_paragraph_element::html_element); init HTMLHeadingElement(struct dom_html_element *html_heading_element::html_element); -init HTMLBodyElement(struct dom_html_element *html_body_element::html_element); init HTMLStyleElement(struct dom_html_element *html_style_element::html_element); init HTMLMetaElement(struct dom_html_element *html_meta_element::html_element); init HTMLLinkElement(struct dom_html_element *html_link_element::html_element);