#include <Event.h>
Public Types | |
| enum | PhaseType { CAPTURING_PHASE = 1, AT_TARGET = 2, BUBBLING_PHASE = 3 } |
| enum | EventType { MOUSEDOWN = 1, MOUSEUP = 2, MOUSEOVER = 4, MOUSEOUT = 8, MOUSEMOVE = 16, MOUSEDRAG = 32, CLICK = 64, DBLCLICK = 128, KEYDOWN = 256, KEYUP = 512, KEYPRESS = 1024, DRAGDROP = 2048, FOCUS = 4096, BLUR = 8192, SELECT = 16384, CHANGE = 32768 } |
Public Member Functions | |
| virtual | ~Event () |
| void | initEvent (const AtomicString &type, bool canBubble, bool cancelable) |
| const AtomicString & | type () const |
| EventTarget * | target () const |
| void | setTarget (PassRefPtr< EventTarget >) |
| EventTarget * | currentTarget () const |
| void | setCurrentTarget (EventTarget *currentTarget) |
| unsigned short | eventPhase () const |
| void | setEventPhase (unsigned short eventPhase) |
| bool | bubbles () const |
| bool | cancelable () const |
| DOMTimeStamp | timeStamp () const |
| void | stopPropagation () |
| EventTarget * | srcElement () const |
| bool | returnValue () const |
| void | setReturnValue (bool returnValue) |
| Clipboard * | clipboardData () const |
| virtual bool | isUIEvent () const |
| virtual bool | isMouseEvent () const |
| virtual bool | isMutationEvent () const |
| virtual bool | isKeyboardEvent () const |
| virtual bool | isTextEvent () const |
| virtual bool | isCompositionEvent () const |
| virtual bool | isDragEvent () const |
| virtual bool | isClipboardEvent () const |
| virtual bool | isMessageEvent () const |
| virtual bool | isWheelEvent () const |
| virtual bool | isBeforeTextInsertedEvent () const |
| virtual bool | isOverflowEvent () const |
| virtual bool | isPageTransitionEvent () const |
| virtual bool | isPopStateEvent () const |
| virtual bool | isProgressEvent () const |
| virtual bool | isXMLHttpRequestProgressEvent () const |
| virtual bool | isWebKitAnimationEvent () const |
| virtual bool | isWebKitTransitionEvent () const |
| virtual bool | isBeforeLoadEvent () const |
| bool | fromUserGesture () |
| bool | propagationStopped () const |
| bool | defaultPrevented () const |
| void | preventDefault () |
| void | setDefaultPrevented (bool defaultPrevented) |
| bool | defaultHandled () const |
| void | setDefaultHandled () |
| bool | cancelBubble () const |
| void | setCancelBubble (bool cancel) |
| Event * | underlyingEvent () const |
| void | setUnderlyingEvent (PassRefPtr< Event >) |
| virtual bool | storesResultAsString () const |
| virtual void | storeResult (const String &) |
| virtual Clipboard * | clipboard () const |
| bool | createdByDOM () const |
| void | setCreatedByDOM (bool createdByDOM) |
Static Public Member Functions | |
| static PassRefPtr< Event > | create () |
| static PassRefPtr< Event > | create (const AtomicString &type, bool canBubble, bool cancelable) |
Protected Member Functions | |
| Event () | |
| Event (const AtomicString &type, bool canBubble, bool cancelable) | |
| virtual void | receivedTarget () |
| bool | dispatched () const |
Private Attributes | |
| AtomicString | m_type |
| bool | m_canBubble |
| bool | m_cancelable |
| bool | m_propagationStopped |
| bool | m_defaultPrevented |
| bool | m_defaultHandled |
| bool | m_cancelBubble |
| bool | m_createdByDOM |
| unsigned short | m_eventPhase |
| EventTarget * | m_currentTarget |
| RefPtr< EventTarget > | m_target |
| DOMTimeStamp | m_createTime |
| RefPtr< Event > | m_underlyingEvent |
Definition at line 39 of file Event.h.
| WebCore::Event::Event | ( | const AtomicString & | type, | |
| bool | canBubble, | |||
| bool | cancelable | |||
| ) | [protected] |
| bool WebCore::Event::bubbles | ( | ) | const [inline] |
Definition at line 89 of file Event.h.
References m_canBubble.
| bool WebCore::Event::cancelable | ( | ) | const [inline] |
Definition at line 90 of file Event.h.
References m_cancelable.
| bool WebCore::Event::cancelBubble | ( | ) | const [inline] |
Definition at line 145 of file Event.h.
References m_cancelBubble.
| virtual Clipboard* WebCore::Event::clipboard | ( | ) | const [inline, virtual] |
| Clipboard* WebCore::Event::clipboardData | ( | ) | const [inline] |
Definition at line 100 of file Event.h.
References clipboard(), and isClipboardEvent().

| static PassRefPtr<Event> WebCore::Event::create | ( | const AtomicString & | type, | |
| bool | canBubble, | |||
| bool | cancelable | |||
| ) | [inline, static] |
| static PassRefPtr<Event> WebCore::Event::create | ( | ) | [inline, static] |
| bool WebCore::Event::createdByDOM | ( | ) | const [inline] |
Definition at line 156 of file Event.h.
References m_createdByDOM.
| EventTarget* WebCore::Event::currentTarget | ( | ) | const [inline] |
Definition at line 83 of file Event.h.
References m_currentTarget.
| bool WebCore::Event::defaultHandled | ( | ) | const [inline] |
Definition at line 142 of file Event.h.
References m_defaultHandled.
| bool WebCore::Event::defaultPrevented | ( | ) | const [inline] |
Definition at line 138 of file Event.h.
References m_defaultPrevented.
| bool WebCore::Event::dispatched | ( | ) | const [inline, protected] |
| unsigned short WebCore::Event::eventPhase | ( | ) | const [inline] |
Definition at line 86 of file Event.h.
References m_eventPhase.
| void WebCore::Event::initEvent | ( | const AtomicString & | type, | |
| bool | canBubble, | |||
| bool | cancelable | |||
| ) |
| bool WebCore::Event::isBeforeLoadEvent | ( | ) | const [virtual] |
| bool WebCore::Event::isBeforeTextInsertedEvent | ( | ) | const [virtual] |
| bool WebCore::Event::isCompositionEvent | ( | ) | const [virtual] |
| bool WebCore::Event::isPageTransitionEvent | ( | ) | const [virtual] |
| bool WebCore::Event::isWebKitAnimationEvent | ( | ) | const [virtual] |
| bool WebCore::Event::isWebKitTransitionEvent | ( | ) | const [virtual] |
| bool WebCore::Event::isXMLHttpRequestProgressEvent | ( | ) | const [virtual] |
| void WebCore::Event::preventDefault | ( | ) | [inline] |
Definition at line 139 of file Event.h.
References m_cancelable, and m_defaultPrevented.
| bool WebCore::Event::propagationStopped | ( | ) | const [inline] |
Definition at line 136 of file Event.h.
References m_propagationStopped.
| void WebCore::Event::receivedTarget | ( | ) | [protected, virtual] |
| bool WebCore::Event::returnValue | ( | ) | const [inline] |
Definition at line 97 of file Event.h.
References defaultPrevented().

| void WebCore::Event::setCancelBubble | ( | bool | cancel | ) | [inline] |
Definition at line 146 of file Event.h.
References m_cancelBubble.
| void WebCore::Event::setCreatedByDOM | ( | bool | createdByDOM | ) | [inline] |
Definition at line 157 of file Event.h.
References m_createdByDOM.
| void WebCore::Event::setCurrentTarget | ( | EventTarget * | currentTarget | ) | [inline] |
Definition at line 84 of file Event.h.
References m_currentTarget.
| void WebCore::Event::setDefaultHandled | ( | ) | [inline] |
Definition at line 143 of file Event.h.
References m_defaultHandled.
| void WebCore::Event::setDefaultPrevented | ( | bool | defaultPrevented | ) | [inline] |
Definition at line 140 of file Event.h.
References m_defaultPrevented.
| void WebCore::Event::setEventPhase | ( | unsigned short | eventPhase | ) | [inline] |
Definition at line 87 of file Event.h.
References m_eventPhase.
| void WebCore::Event::setReturnValue | ( | bool | returnValue | ) | [inline] |
Definition at line 98 of file Event.h.
References setDefaultPrevented().

| void WebCore::Event::setTarget | ( | PassRefPtr< EventTarget > | target | ) |
| void WebCore::Event::setUnderlyingEvent | ( | PassRefPtr< Event > | ue | ) |
| EventTarget* WebCore::Event::srcElement | ( | ) | const [inline] |
| void WebCore::Event::stopPropagation | ( | ) | [inline] |
Definition at line 92 of file Event.h.
References m_propagationStopped.
| void WebCore::Event::storeResult | ( | const String & | ) | [virtual] |
| bool WebCore::Event::storesResultAsString | ( | ) | const [virtual] |
| EventTarget* WebCore::Event::target | ( | ) | const [inline] |
| DOMTimeStamp WebCore::Event::timeStamp | ( | ) | const [inline] |
Definition at line 91 of file Event.h.
References m_createTime.
| const AtomicString& WebCore::Event::type | ( | ) | const [inline] |
| Event* WebCore::Event::underlyingEvent | ( | ) | const [inline] |
Definition at line 148 of file Event.h.
References m_underlyingEvent.
bool WebCore::Event::m_canBubble [private] |
bool WebCore::Event::m_cancelable [private] |
bool WebCore::Event::m_cancelBubble [private] |
bool WebCore::Event::m_createdByDOM [private] |
DOMTimeStamp WebCore::Event::m_createTime [private] |
EventTarget* WebCore::Event::m_currentTarget [private] |
bool WebCore::Event::m_defaultHandled [private] |
bool WebCore::Event::m_defaultPrevented [private] |
unsigned short WebCore::Event::m_eventPhase [private] |
bool WebCore::Event::m_propagationStopped [private] |
RefPtr<EventTarget> WebCore::Event::m_target [private] |
AtomicString WebCore::Event::m_type [private] |
RefPtr<Event> WebCore::Event::m_underlyingEvent [private] |
1.6.2-20100208