mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-05 04:11:56 +03:00
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
/* Binding to generate HTMLElement 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 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;
|
|
}
|
|
|