diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-02 22:37:57 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-02 22:37:57 +0000 |
commit | 48cbca0399836db3d6f52db7439d5a49a97643ed (patch) | |
tree | e093529818c7cd5fca4c137ecc69584c1ac0896f /javascript/jsapi/location.bnd | |
parent | 7cb31505738ef0beaf984bebf8bb7f0529097f33 (diff) | |
download | netsurf-48cbca0399836db3d6f52db7439d5a49a97643ed.tar.gz netsurf-48cbca0399836db3d6f52db7439d5a49a97643ed.tar.bz2 |
move bindings into the correct place
Diffstat (limited to 'javascript/jsapi/location.bnd')
-rw-r--r-- | javascript/jsapi/location.bnd | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/javascript/jsapi/location.bnd b/javascript/jsapi/location.bnd new file mode 100644 index 000000000..c83fe46e3 --- /dev/null +++ b/javascript/jsapi/location.bnd @@ -0,0 +1,53 @@ +/* Binding to generate Location 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 "desktop/browser.h" + +#include "utils/config.h" +#include "utils/log.h" + +#include "javascript/jsapi.h" +#include "javascript/jsapi/binding.h" + +%} + +binding location { + type js_libdom; /* the binding type */ + + interface Location; /* 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 "struct browser_window *" bw; +} + +operation reload %{ + browser_window_reload(private->bw, false); +%} |