From 48cbca0399836db3d6f52db7439d5a49a97643ed Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 2 Nov 2012 22:37:57 +0000 Subject: move bindings into the correct place --- javascript/jsapi/htmlelement.bnd | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 javascript/jsapi/htmlelement.bnd (limited to 'javascript/jsapi/htmlelement.bnd') diff --git a/javascript/jsapi/htmlelement.bnd b/javascript/jsapi/htmlelement.bnd new file mode 100644 index 000000000..596bb7de0 --- /dev/null +++ b/javascript/jsapi/htmlelement.bnd @@ -0,0 +1,51 @@ +/* Binding to generate HTMLElement interface + * + * Copyright 2012 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 + */ + +#include "dom.bnd" + +webidlfile "html.idl"; + +hdrcomment "Copyright 2012 Vincent Sanders "; +hdrcomment "This file is part of NetSurf, http://www.netsurf-browser.org/"; +hdrcomment "Released under the terms of the MIT License,"; +hdrcomment " http://www.opensource.org/licenses/mit-license"; + +preamble %{ + +#include + +#include "utils/config.h" +#include "utils/log.h" + +#include "javascript/jsapi.h" +#include "javascript/jsapi/binding.h" + +%} + +binding htmlelement { + type js_libdom; /* the binding type */ + + interface HTMLElement; /* Web IDL interface to generate */ + + /* private members: + * - stored in private context structure. + * - passed as parameters to constructor and stored automatically. + * - are *not* considered for property getters/setters. + * + * internal members: + * - value stored in private context structure + * - not passed to constructor + * - must be instantiated by constructor + * - are considered for property getters/setters. + */ + private "dom_element *" node; + private "struct html_content *" htmlc; +} + -- cgit v1.2.3