mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Bug 846: Document the expected parents of SMJS class instances.
This commit is contained in:
parent
670ad939c3
commit
36f5f73a60
@ -49,6 +49,7 @@
|
|||||||
static JSBool document_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
static JSBool document_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
||||||
static JSBool document_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
static JSBool document_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
||||||
|
|
||||||
|
/* Each @document_class object must have a @window_class parent. */
|
||||||
const JSClass document_class = {
|
const JSClass document_class = {
|
||||||
"document",
|
"document",
|
||||||
JSCLASS_HAS_PRIVATE,
|
JSCLASS_HAS_PRIVATE,
|
||||||
|
@ -52,6 +52,7 @@
|
|||||||
static JSBool input_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
static JSBool input_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
||||||
static JSBool input_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
static JSBool input_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
||||||
|
|
||||||
|
/* Each @input_class object must have a @form_class parent. */
|
||||||
static const JSClass input_class = {
|
static const JSClass input_class = {
|
||||||
"input", /* here, we unleash ourselves */
|
"input", /* here, we unleash ourselves */
|
||||||
JSCLASS_HAS_PRIVATE, /* struct form_state * */
|
JSCLASS_HAS_PRIVATE, /* struct form_state * */
|
||||||
@ -609,6 +610,7 @@ form_elements_namedItem(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv,
|
|||||||
static JSBool form_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
static JSBool form_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
||||||
static JSBool form_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
static JSBool form_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
||||||
|
|
||||||
|
/* Each @form_class object must have a @document_class parent. */
|
||||||
static const JSClass form_class = {
|
static const JSClass form_class = {
|
||||||
"form",
|
"form",
|
||||||
JSCLASS_HAS_PRIVATE, /* struct form_view * */
|
JSCLASS_HAS_PRIVATE, /* struct form_view * */
|
||||||
@ -882,6 +884,7 @@ get_form_object(JSContext *ctx, JSObject *jsdoc, struct form_view *fv)
|
|||||||
|
|
||||||
static JSBool forms_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
static JSBool forms_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
||||||
|
|
||||||
|
/* Each @forms_class object must have a @document_class parent. */
|
||||||
const JSClass forms_class = {
|
const JSClass forms_class = {
|
||||||
"forms",
|
"forms",
|
||||||
JSCLASS_HAS_PRIVATE,
|
JSCLASS_HAS_PRIVATE,
|
||||||
|
@ -126,6 +126,7 @@ history_go(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
|||||||
static JSBool location_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
static JSBool location_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
||||||
static JSBool location_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
static JSBool location_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
||||||
|
|
||||||
|
/* Each @location_class object must have a @window_class parent. */
|
||||||
const JSClass location_class = {
|
const JSClass location_class = {
|
||||||
"location",
|
"location",
|
||||||
JSCLASS_HAS_PRIVATE,
|
JSCLASS_HAS_PRIVATE,
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
static JSBool unibar_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
static JSBool unibar_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
||||||
static JSBool unibar_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
static JSBool unibar_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp);
|
||||||
|
|
||||||
|
/* Each @menubar_class object must have a @window_class parent. */
|
||||||
const JSClass menubar_class = {
|
const JSClass menubar_class = {
|
||||||
"menubar",
|
"menubar",
|
||||||
JSCLASS_HAS_PRIVATE, /* const char * "t" */
|
JSCLASS_HAS_PRIVATE, /* const char * "t" */
|
||||||
@ -54,6 +55,7 @@ const JSClass menubar_class = {
|
|||||||
unibar_get_property, unibar_set_property,
|
unibar_get_property, unibar_set_property,
|
||||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub
|
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub
|
||||||
};
|
};
|
||||||
|
/* Each @statusbar_class object must have a @window_class parent. */
|
||||||
const JSClass statusbar_class = {
|
const JSClass statusbar_class = {
|
||||||
"statusbar",
|
"statusbar",
|
||||||
JSCLASS_HAS_PRIVATE, /* const char * "s" */
|
JSCLASS_HAS_PRIVATE, /* const char * "s" */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user