You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
749 B
26 lines
749 B
#ifndef BOX_H_
|
|
#define BOX_H_
|
|
|
|
#include <dom/dom.h>
|
|
|
|
#include "utils/errors.h"
|
|
|
|
typedef struct box_manager box_manager;
|
|
struct html_content;
|
|
|
|
//XXX: presumably, this will be a library, so can't use NS types
|
|
nserror box_manager_create(struct html_content *c, dom_document *doc,
|
|
box_manager **manager);
|
|
|
|
nserror box_manager_destroy(box_manager *manager);
|
|
|
|
//XXX: sane? or should the box manager register its own handlers directly?
|
|
//XXX: if registering, then will only reliably receive events in the CAPTURE phase
|
|
//XXX: if not (i.e. using the default handler), will reliably get START/FINISHED
|
|
//void box_manager_handle_dom_event(box_manager *manager,
|
|
// const dom_event *event);
|
|
|
|
nserror box_manager_styles_changed(box_manager *manager);
|
|
|
|
#endif
|