31 #ifndef _DOM_Events_h_ 32 #define _DOM_Events_h_ 34 #include <dom/dom_node.h> 35 #include <dom/dom_misc.h> 48 class EventListenerImpl;
52 class MutationEventImpl;
84 virtual void handleEvent(
Event &evt);
119 friend class NodeImpl;
164 Node currentTarget()
const;
170 unsigned short eventPhase()
const;
177 bool bubbles()
const;
185 bool cancelable()
const;
205 void stopPropagation();
219 void preventDefault();
246 void initEvent(
const DOMString &eventTypeArg,
bool canBubbleArg,
bool cancelableArg);
252 EventImpl *handle()
const;
285 UNSPECIFIED_EVENT_TYPE_ERR = 0,
286 _EXCEPTION_OFFSET = 3000,
287 _EXCEPTION_MAX = 3999
296 static DOMString codeAsString(
int cssCode);
299 static bool isEventExceptionCode(
int exceptioncode);
344 int charCode()
const;
386 void initUIEvent(
const DOMString &typeArg,
428 long screenX()
const;
435 long screenY()
const;
442 long clientX()
const;
449 long clientY()
const;
455 bool ctrlKey()
const;
462 bool shiftKey()
const;
478 bool metaKey()
const;
490 unsigned short button()
const;
499 Node relatedTarget()
const;
540 void initMouseEvent(
const DOMString &typeArg,
553 unsigned short buttonArg,
554 const Node &relatedTargetArg);
593 void initTextEvent(
const DOMString &typeArg,
645 DOM_KEY_LOCATION_STANDARD = 0x00,
654 DOM_KEY_LOCATION_LEFT = 0x01,
663 DOM_KEY_LOCATION_RIGHT = 0x02,
670 DOM_KEY_LOCATION_NUMPAD = 0x03
689 unsigned long keyLocation()
const;
696 bool ctrlKey()
const;
703 bool shiftKey()
const;
717 bool metaKey()
const;
733 bool getModifierState(
DOMString keyIdentifierArg)
const;
758 void initKeyboardEvent(
DOMString typeArg,
763 unsigned long keyLocationArg,
810 Node relatedNode()
const;
840 unsigned short attrChange()
const;
867 void initMutationEvent(
const DOMString &typeArg,
870 const Node &relatedNodeArg,
874 unsigned short attrChangeArg);
The Node interface is the primary datatype for the entire Document Object Model.
Introduced in DOM Level 2.
Introduced in DOM Level 2.
Introduced in DOM Level 2.
attrChangeType
An integer indicating in which way the Attr was changed.
Introduced in DOM Level 2:
Introduced in DOM Level 3.
Introduced in DOM Level 3.
This class implements the basic string we use in the DOM.
The Document interface represents the entire HTML or XML document.
Introduced in DOM Level 2.
Introduced in DOM Level 2.
This library provides a full-featured HTML parser and widget.
EventExceptionCode
An integer indicating the type of error generated.
Introduced in DOM Level 2.
PhaseType
An integer indicating which phase of event flow is being processed.
unsigned long long DOMTimeStamp