From bb6b546b4be757cd515253cd10eccadf78e9afb6 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 19 Nov 2012 17:23:24 +0000 Subject: cleanup formatting in binding files --- javascript/jsapi/console.bnd | 12 ------------ javascript/jsapi/location.bnd | 21 +++++---------------- javascript/jsapi/window.bnd | 8 +------- 3 files changed, 6 insertions(+), 35 deletions(-) diff --git a/javascript/jsapi/console.bnd b/javascript/jsapi/console.bnd index 6aef9dcb8..7c3484529 100644 --- a/javascript/jsapi/console.bnd +++ b/javascript/jsapi/console.bnd @@ -30,18 +30,6 @@ binding navigator { interface Console; /* 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. - */ - internal "void *" gui_console; } operation log %{ diff --git a/javascript/jsapi/location.bnd b/javascript/jsapi/location.bnd index c83fe46e3..db7a247bc 100644 --- a/javascript/jsapi/location.bnd +++ b/javascript/jsapi/location.bnd @@ -30,24 +30,13 @@ preamble %{ %} 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. - */ + type js_libdom; /* the binding type */ + + interface Location; /* Web IDL interface to generate */ + private "struct browser_window *" bw; } operation reload %{ - browser_window_reload(private->bw, false); + browser_window_reload(private->bw, false); %} diff --git a/javascript/jsapi/window.bnd b/javascript/jsapi/window.bnd index 767b94f1b..c4e6e88cb 100644 --- a/javascript/jsapi/window.bnd +++ b/javascript/jsapi/window.bnd @@ -23,15 +23,9 @@ binding window { interface Window; /* Web IDL interface to generate */ - /* private are parameters to constructor stored in private - * context structure. - * - * internal are value stored in private context structure but not - * passed to constructor but are considered for property - * getters/setters. - */ private "struct browser_window *" bw; private "struct html_content *" htmlc; + internal "JSObject *" document; internal "JSObject *" navigator; internal "JSObject *" console; -- cgit v1.2.3