#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"
◆ _dom_document_event_can_dispatch()
Tests if the implementation can generate events of a specified type
- Parameters
-
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 |
- Returns
- DOM_NO_ERR on success, appropriate dom_exception on failure.
We don't support this API now, so the return value should always DOM_NO_SUPPORTED_ERR.
◆ _dom_document_event_create_event()
Create an Event object
- Parameters
-
de | The DocumentEvent object |
type | The Event type |
evt | The returned Event object |
- Returns
- DOM_NO_ERR on success, appropriate dom_exception on failure.
◆ _dom_document_event_internal_finalise()
◆ _dom_document_event_internal_initialise()
Initialise this DocumentEvent
- Parameters
-
dei | The DocumentEvent internal object |
actions | The default action fetcher, the browser should provide such a function to Event module. |
- Returns
- DOM_NO_ERR on success, appropriate dom_exception on failure.