|
XenevaOS
|
#include <assert.h>#include <string.h>#include <libwapcaplet/libwapcaplet.h>#include "core/string.h"#include "core/node.h"#include "core/document.h"#include "events/document_event.h"#include "events/event.h"#include "events/ui_event.h"#include "events/custom_event.h"#include "events/text_event.h"#include "events/keyboard_event.h"#include "events/mouse_event.h"#include "events/mouse_multi_wheel_event.h"#include "events/mouse_wheel_event.h"#include "events/mutation_event.h"#include "events/mutation_name_event.h"#include "utils/utils.h"
Functions | |
| dom_exception | _dom_document_event_internal_initialise (dom_document_event_internal *dei, dom_events_default_action_fetcher actions, void *actions_ctx) |
| void | _dom_document_event_internal_finalise (dom_document_event_internal *dei) |
| dom_exception | _dom_document_event_create_event (dom_document_event *de, dom_string *type, struct dom_event **evt) |
| dom_exception | _dom_document_event_can_dispatch (dom_document_event *de, dom_string *namespace, dom_string *type, bool *can) |
| dom_exception _dom_document_event_can_dispatch | ( | dom_document_event * | de, |
| dom_string * | namespace, | ||
| dom_string * | type, | ||
| bool * | can | ||
| ) |
Tests if the implementation can generate events of a specified type
| de | The DocumentEvent |
| namespace | The namespace of the event |
| type | The type of the event |
| can | True if we can generate such an event, false otherwise |
We don't support this API now, so the return value should always DOM_NO_SUPPORTED_ERR.
| dom_exception _dom_document_event_create_event | ( | dom_document_event * | de, |
| dom_string * | type, | ||
| struct dom_event ** | evt | ||
| ) |
Create an Event object
| de | The DocumentEvent object |
| type | The Event type |
| evt | The returned Event object |
| void _dom_document_event_internal_finalise | ( | dom_document_event_internal * | dei | ) |
| dom_exception _dom_document_event_internal_initialise | ( | dom_document_event_internal * | dei, |
| dom_events_default_action_fetcher | actions, | ||
| void * | actions_ctx | ||
| ) |
Initialise this DocumentEvent
| dei | The DocumentEvent internal object |
| actions | The default action fetcher, the browser should provide such a function to Event module. |