diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-11-07 22:52:03 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-11-07 22:52:03 +0000 |
commit | 55c6841eca063e8fe4db0b8ac67c8a61da9b7312 (patch) | |
tree | 17e0ed1b1d0130404e15e73708903c3ed729a6b6 /javascript/jsapi/text.bnd | |
parent | f37a8ad58be683bc42e7cff692c78797a580b921 (diff) | |
parent | 9482bb464a157265a555dfa38fcf2dc37ade12fd (diff) | |
download | netsurf-55c6841eca063e8fe4db0b8ac67c8a61da9b7312.tar.gz netsurf-55c6841eca063e8fe4db0b8ac67c8a61da9b7312.tar.bz2 |
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
Diffstat (limited to 'javascript/jsapi/text.bnd')
-rw-r--r-- | javascript/jsapi/text.bnd | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/javascript/jsapi/text.bnd b/javascript/jsapi/text.bnd new file mode 100644 index 000000000..53e93803d --- /dev/null +++ b/javascript/jsapi/text.bnd @@ -0,0 +1,44 @@ +/* Binding to generate Text interface + * + * Copyright 2012 Vincent Sanders <vince@netsurf-browser.org> + * + * 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 <vince@netsurf-browser.org>"; +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 <dom/dom.h> + +#include "utils/config.h" +#include "utils/log.h" + +#include "javascript/jsapi.h" +#include "javascript/jsapi/binding.h" + +%} + +binding text { + type js_libdom; /* the binding type */ + + interface Text; /* Web IDL interface to generate */ + + private "dom_text *" node; +} + +api finalise %{ + if (private != NULL) { + dom_node_unref(private->node); + } +%} |