path: root/render/form.h
diff options
authorMichael Drake <>2014-02-08 17:11:55 +0000
committerMichael Drake <>2014-02-08 17:11:55 +0000
commit8deb9ec25c6146803e3d74c1b2e00425159fd17e (patch)
tree8e61b09ee84f0124fab95f411e0c5f89fb8125f4 /render/form.h
parentec7a02e550b1c83abecc0f9103ea86e1cfb989ea (diff)
Native select menu interface shouldn't force front end to dig inside bw struct.
Diffstat (limited to 'render/form.h')
1 files changed, 5 insertions, 5 deletions
diff --git a/render/form.h b/render/form.h
index 84377a55b..21829b9c5 100644
--- a/render/form.h
+++ b/render/form.h
@@ -46,6 +46,7 @@ typedef enum {
/** HTML form. */
struct form {
+ struct html_content *html; /**< HTML content containing form */
void *node; /**< Corresponding DOM node */
char *action; /**< Absolute URL to submit to. */
@@ -156,6 +157,7 @@ typedef void(*select_menu_redraw_callback)(void *client_data,
struct form *form_new(void *node, const char *action, const char *target,
form_method method, const char *charset,
const char *doc_charset);
+void form_set_html_content(struct form *f, struct html_content *html);
void form_free(struct form *form);
struct form_control *form_new_control(void *node, form_control_type type);
void form_add_control(struct form *form, struct form_control *control);
@@ -187,13 +189,11 @@ void form_select_mouse_drag_end(struct form_control *control,
browser_mouse_state mouse, int x, int y);
void form_select_get_dimensions(struct form_control *control,
int *width, int *height);
-void form_select_process_selection(struct hlcache_handle *h,
- struct form_control *control, int item);
+void form_select_process_selection(struct form_control *control, int item);
void form_submit(nsurl *page_url, struct browser_window *target,
struct form *form, struct form_control *submit_button);
-void form_radio_set(struct html_content *html, struct form_control *radio);
+void form_radio_set(struct form_control *radio);
-void form_gadget_update_value(struct html_content *html,
- struct form_control *control, char *value);
+void form_gadget_update_value(struct form_control *control, char *value);