Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3584 | sourcerer | 1 | /* Binding to generate Comment interface |
2 | * |
||
3 | * Copyright 2012 Vincent Sanders |
||
4 | * |
||
5 | * This file is part of NetSurf, http://www.netsurf-browser.org/ |
||
6 | * |
||
7 | * Released under the terms of the MIT License, |
||
8 | * http://www.opensource.org/licenses/mit-license |
||
9 | */ |
||
10 | |||
11 | |||
12 | webidlfile "html.idl"; |
||
13 | |||
14 | hdrcomment "Copyright 2012 Vincent Sanders |
||
15 | hdrcomment "This file is part of NetSurf, http://www.netsurf-browser.org/"; |
||
16 | hdrcomment "Released under the terms of the MIT License,"; |
||
17 | hdrcomment " http://www.opensource.org/licenses/mit-license"; |
||
18 | |||
19 | preamble %{ |
||
20 | |||
21 | #include |
||
22 | |||
23 | #include "utils/config.h" |
||
24 | #include "utils/log.h" |
||
25 | #include "render/html_internal.h" |
||
26 | #include "javascript/jsapi.h" |
||
27 | |||
28 | #include "comment.h" |
||
29 | |||
30 | %} |
||
31 | |||
32 | #include "dom.bnd" |
||
33 | |||
34 | binding comment { |
||
35 | type js_libdom; /* the binding type */ |
||
36 | |||
37 | interface Comment; /* Web IDL interface to generate */ |
||
38 | |||
39 | private "dom_comment *" node; |
||
40 | private "struct html_content *" htmlc; |
||
41 | } |
||
42 | |||
43 | api finalise %{ |
||
44 | if (private != NULL) { |
||
45 | dom_node_unref(private->node); |
||
46 | } |
||
47 | %} |