webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WebCore::MouseRelatedEvent Class Reference

#include <MouseRelatedEvent.h>

Inheritance diagram for WebCore::MouseRelatedEvent:
WebCore::UIEventWithKeyState WebCore::UIEventWithKeyState WebCore::UIEvent WebCore::UIEvent WebCore::UIEvent WebCore::UIEvent WebCore::Event WebCore::Event WebCore::Event WebCore::Event WebCore::Event WebCore::Event WebCore::Event WebCore::Event WebCore::MouseEvent WebCore::MouseEvent WebCore::SimulatedMouseEvent WebCore::WheelEvent WebCore::WheelEvent WebCore::SimulatedMouseEvent WebCore::WheelEvent WebCore::WheelEvent

Public Member Functions

int screenX () const
 
int screenY () const
 
const IntPointscreenLocation () const
 
int clientX () const
 
int clientY () const
 
const LayoutPointclientLocation () const
 
int layerX () override
 
int layerY () override
 
WEBCORE_EXPORT int offsetX ()
 
WEBCORE_EXPORT int offsetY ()
 
bool isSimulated () const
 
int pageX () const final
 
int pageY () const final
 
virtual const LayoutPointpageLocation () const
 
WEBCORE_EXPORT int x () const
 
WEBCORE_EXPORT int y () const
 
const LayoutPointabsoluteLocation () const
 
void setAbsoluteLocation (const LayoutPoint &p)
 
int screenX () const
 
int screenY () const
 
const IntPointscreenLocation () const
 
int clientX () const
 
int clientY () const
 
const LayoutPointclientLocation () const
 
int layerX () override
 
int layerY () override
 
WEBCORE_EXPORT int offsetX ()
 
WEBCORE_EXPORT int offsetY ()
 
bool isSimulated () const
 
int pageX () const final
 
int pageY () const final
 
virtual const LayoutPointpageLocation () const
 
WEBCORE_EXPORT int x () const
 
WEBCORE_EXPORT int y () const
 
const LayoutPointabsoluteLocation () const
 
void setAbsoluteLocation (const LayoutPoint &p)
 
- Public Member Functions inherited from WebCore::UIEventWithKeyState
bool ctrlKey () const
 
bool shiftKey () const
 
bool altKey () const
 
bool metaKey () const
 
bool altGraphKey () const
 
bool capsLockKey () const
 
bool ctrlKey () const
 
bool shiftKey () const
 
bool altKey () const
 
bool metaKey () const
 
bool altGraphKey () const
 
bool capsLockKey () const
 
- Public Member Functions inherited from WebCore::UIEvent
virtual ~UIEvent ()
 
WEBCORE_EXPORT void initUIEvent (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *, int detail)
 
DOMWindowview () const
 
int detail () const
 
EventInterface eventInterface () const override
 
virtual int which () const
 
virtual ~UIEvent ()
 
WEBCORE_EXPORT void initUIEvent (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *, int detail)
 
DOMWindowview () const
 
int detail () const
 
EventInterface eventInterface () const override
 
virtual int which () const
 
- Public Member Functions inherited from WebCore::Event
virtual ~Event ()
 
WEBCORE_EXPORT void initEvent (const AtomicString &type, bool canBubble, bool cancelable)
 
bool isInitialized () const
 
const AtomicStringtype () const
 
void setType (const AtomicString &type)
 
EventTargettarget () const
 
void setTarget (RefPtr< EventTarget > &&)
 
EventTargetcurrentTarget () const
 
void setCurrentTarget (EventTarget *)
 
unsigned short eventPhase () const
 
void setEventPhase (unsigned short eventPhase)
 
bool bubbles () const
 
bool cancelable () const
 
WEBCORE_EXPORT bool composed () const
 
DOMTimeStamp timeStamp () const
 
void setEventPath (const EventPath &path)
 
void clearEventPath ()
 
Vector< EventTarget * > composedPath () const
 
void stopPropagation ()
 
void stopImmediatePropagation ()
 
bool isTrusted () const
 
void setUntrusted ()
 
EventTargetsrcElement () const
 
bool legacyReturnValue () const
 
void setLegacyReturnValue (bool returnValue)
 
virtual bool isMouseEvent () const
 
virtual bool isFocusEvent () const
 
virtual bool isKeyboardEvent () const
 
virtual bool isInputEvent () const
 
virtual bool isCompositionEvent () const
 
virtual bool isTouchEvent () const
 
virtual bool isClipboardEvent () const
 
virtual bool isBeforeTextInsertedEvent () const
 
virtual bool isBeforeUnloadEvent () const
 
virtual bool isErrorEvent () const
 
virtual bool isTextEvent () const
 
virtual bool isWheelEvent () const
 
bool propagationStopped () const
 
bool immediatePropagationStopped () const
 
void resetPropagationFlags ()
 
bool defaultPrevented () const
 
void preventDefault ()
 
void setDefaultPrevented (bool defaultPrevented)
 
bool defaultHandled () const
 
void setDefaultHandled ()
 
void setInPassiveListener (bool value)
 
bool cancelBubble () const
 
void setCancelBubble (bool)
 
EventunderlyingEvent () const
 
void setUnderlyingEvent (Event *)
 
bool isBeingDispatched () const
 
virtual EventTargetrelatedTarget () const
 
virtual ~Event ()
 
WEBCORE_EXPORT void initEvent (const AtomicString &type, bool canBubble, bool cancelable)
 
bool isInitialized () const
 
const AtomicStringtype () const
 
void setType (const AtomicString &type)
 
EventTargettarget () const
 
void setTarget (RefPtr< EventTarget > &&)
 
EventTargetcurrentTarget () const
 
void setCurrentTarget (EventTarget *)
 
unsigned short eventPhase () const
 
void setEventPhase (unsigned short eventPhase)
 
bool bubbles () const
 
bool cancelable () const
 
WEBCORE_EXPORT bool composed () const
 
DOMTimeStamp timeStamp () const
 
void setEventPath (const EventPath &path)
 
void clearEventPath ()
 
Vector< EventTarget * > composedPath () const
 
void stopPropagation ()
 
void stopImmediatePropagation ()
 
bool isTrusted () const
 
void setUntrusted ()
 
EventTargetsrcElement () const
 
bool legacyReturnValue () const
 
void setLegacyReturnValue (bool returnValue)
 
virtual bool isMouseEvent () const
 
virtual bool isFocusEvent () const
 
virtual bool isKeyboardEvent () const
 
virtual bool isInputEvent () const
 
virtual bool isCompositionEvent () const
 
virtual bool isTouchEvent () const
 
virtual bool isClipboardEvent () const
 
virtual bool isBeforeTextInsertedEvent () const
 
virtual bool isBeforeUnloadEvent () const
 
virtual bool isErrorEvent () const
 
virtual bool isTextEvent () const
 
virtual bool isWheelEvent () const
 
bool propagationStopped () const
 
bool immediatePropagationStopped () const
 
void resetPropagationFlags ()
 
bool defaultPrevented () const
 
void preventDefault ()
 
void setDefaultPrevented (bool defaultPrevented)
 
bool defaultHandled () const
 
void setDefaultHandled ()
 
void setInPassiveListener (bool value)
 
bool cancelBubble () const
 
void setCancelBubble (bool)
 
EventunderlyingEvent () const
 
void setUnderlyingEvent (Event *)
 
bool isBeingDispatched () const
 
virtual EventTargetrelatedTarget () const
 
- Public Member Functions inherited from WebCore::ScriptWrappable
JSDOMObjectwrapper () const
 
void setWrapper (JSDOMObject *, JSC::WeakHandleOwner *, void *)
 
void clearWrapper (JSDOMObject *)
 
JSDOMObjectwrapper () const
 
void setWrapper (JSDOMObject *, JSC::WeakHandleOwner *, void *)
 
void clearWrapper (JSDOMObject *)
 
- Public Member Functions inherited from WTF::RefCounted< Event >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::RefCountedBase
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 

Protected Member Functions

 MouseRelatedEvent ()
 
 MouseRelatedEvent (const AtomicString &type, bool canBubble, bool cancelable, double timestamp, DOMWindow *, int detail, const IntPoint &screenLocation, const IntPoint &windowLocation, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool isSimulated=false)
 
 MouseRelatedEvent (const AtomicString &type, const MouseRelatedEventInit &, IsTrusted=IsTrusted::No)
 
void initCoordinates ()
 
void initCoordinates (const LayoutPoint &clientLocation)
 
void receivedTarget () final
 
void computePageLocation ()
 
void computeRelativePosition ()
 
 MouseRelatedEvent ()
 
 MouseRelatedEvent (const AtomicString &type, bool canBubble, bool cancelable, double timestamp, DOMWindow *, int detail, const IntPoint &screenLocation, const IntPoint &windowLocation, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool isSimulated=false)
 
 MouseRelatedEvent (const AtomicString &type, const MouseRelatedEventInit &, IsTrusted=IsTrusted::No)
 
void initCoordinates ()
 
void initCoordinates (const LayoutPoint &clientLocation)
 
void receivedTarget () final
 
void computePageLocation ()
 
void computeRelativePosition ()
 
- Protected Member Functions inherited from WebCore::UIEventWithKeyState
 UIEventWithKeyState ()=default
 
 UIEventWithKeyState (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *view, int detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
 
 UIEventWithKeyState (const AtomicString &type, bool canBubble, bool cancelable, double timestamp, DOMWindow *view, int detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool altGraphKey, bool capsLockKey)
 
 UIEventWithKeyState (const AtomicString &type, const EventModifierInit &initializer, IsTrusted isTrusted)
 
 UIEventWithKeyState ()=default
 
 UIEventWithKeyState (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *view, int detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
 
 UIEventWithKeyState (const AtomicString &type, bool canBubble, bool cancelable, double timestamp, DOMWindow *view, int detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool altGraphKey, bool capsLockKey)
 
 UIEventWithKeyState (const AtomicString &type, const EventModifierInit &initializer, IsTrusted isTrusted)
 
- Protected Member Functions inherited from WebCore::UIEvent
 UIEvent ()
 
 UIEvent (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *, int detail)
 
 UIEvent (const AtomicString &type, bool canBubble, bool cancelable, double timestamp, DOMWindow *, int detail)
 
 UIEvent (const AtomicString &, const UIEventInit &, IsTrusted)
 
 UIEvent ()
 
 UIEvent (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *, int detail)
 
 UIEvent (const AtomicString &type, bool canBubble, bool cancelable, double timestamp, DOMWindow *, int detail)
 
 UIEvent (const AtomicString &, const UIEventInit &, IsTrusted)
 
- Protected Member Functions inherited from WebCore::Event
 Event (IsTrusted=IsTrusted::No)
 
WEBCORE_EXPORT Event (const AtomicString &type, bool canBubble, bool cancelable)
 
 Event (const AtomicString &type, bool canBubble, bool cancelable, double timestamp)
 
 Event (const AtomicString &type, const EventInit &, IsTrusted)
 
bool dispatched () const
 
 Event (IsTrusted=IsTrusted::No)
 
WEBCORE_EXPORT Event (const AtomicString &type, bool canBubble, bool cancelable)
 
 Event (const AtomicString &type, bool canBubble, bool cancelable, double timestamp)
 
 Event (const AtomicString &type, const EventInit &, IsTrusted)
 
bool dispatched () const
 
- Protected Member Functions inherited from WebCore::ScriptWrappable
 ~ScriptWrappable ()
 
 ~ScriptWrappable ()
 
- Protected Member Functions inherited from WTF::RefCounted< Event >
 RefCounted ()
 
 RefCounted ()
 
 RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
- Protected Member Functions inherited from WTF::RefCountedBase
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 

Protected Attributes

IntPoint m_screenLocation
 
LayoutPoint m_clientLocation
 
- Protected Attributes inherited from WebCore::UIEventWithKeyState
bool m_ctrlKey { false }
 
bool m_altKey { false }
 
bool m_shiftKey { false }
 
bool m_metaKey { false }
 
bool m_altGraphKey { false }
 
bool m_capsLockKey { false }
 

Additional Inherited Members

- Public Types inherited from WebCore::Event
enum  IsTrusted { IsTrusted::No, IsTrusted::Yes, IsTrusted::No, IsTrusted::Yes }
 
enum  PhaseType {
  NONE = 0, CAPTURING_PHASE = 1, AT_TARGET = 2, BUBBLING_PHASE = 3,
  NONE = 0, CAPTURING_PHASE = 1, AT_TARGET = 2, BUBBLING_PHASE = 3
}
 
enum  IsTrusted { IsTrusted::No, IsTrusted::Yes, IsTrusted::No, IsTrusted::Yes }
 
enum  PhaseType {
  NONE = 0, CAPTURING_PHASE = 1, AT_TARGET = 2, BUBBLING_PHASE = 3,
  NONE = 0, CAPTURING_PHASE = 1, AT_TARGET = 2, BUBBLING_PHASE = 3
}
 
- Static Public Member Functions inherited from WebCore::UIEvent
static Ref< UIEventcreate (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *view, int detail)
 
static Ref< UIEventcreateForBindings ()
 
static Ref< UIEventcreate (const AtomicString &type, const UIEventInit &initializer, IsTrusted isTrusted=IsTrusted::No)
 
static Ref< UIEventcreate (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *view, int detail)
 
static Ref< UIEventcreateForBindings ()
 
static Ref< UIEventcreate (const AtomicString &type, const UIEventInit &initializer, IsTrusted isTrusted=IsTrusted::No)
 
- Static Public Member Functions inherited from WebCore::Event
static Ref< Eventcreate (const AtomicString &type, bool canBubble, bool cancelable)
 
static Ref< EventcreateForBindings ()
 
static Ref< Eventcreate (const AtomicString &type, const EventInit &initializer, IsTrusted isTrusted=IsTrusted::No)
 
static Ref< Eventcreate (const AtomicString &type, bool canBubble, bool cancelable)
 
static Ref< EventcreateForBindings ()
 
static Ref< Eventcreate (const AtomicString &type, const EventInit &initializer, IsTrusted isTrusted=IsTrusted::No)
 
- Static Public Member Functions inherited from WebCore::ScriptWrappable
template<typename Derived >
static ptrdiff_t offsetOfWrapper ()
 
template<typename Derived >
static ptrdiff_t offsetOfWrapper ()
 

Constructor & Destructor Documentation

◆ MouseRelatedEvent() [1/6]

WebCore::MouseRelatedEvent::MouseRelatedEvent ( )
protected

◆ MouseRelatedEvent() [2/6]

WebCore::MouseRelatedEvent::MouseRelatedEvent ( const AtomicString type,
bool  canBubble,
bool  cancelable,
double  timestamp,
DOMWindow DOMWindow,
int  detail,
const IntPoint screenLocation,
const IntPoint windowLocation,
bool  ctrlKey,
bool  altKey,
bool  shiftKey,
bool  metaKey,
bool  isSimulated = false 
)
protected

◆ MouseRelatedEvent() [3/6]

WebCore::MouseRelatedEvent::MouseRelatedEvent ( const AtomicString type,
const MouseRelatedEventInit initializer,
IsTrusted  isTrusted = IsTrusted::No 
)
protected

◆ MouseRelatedEvent() [4/6]

WebCore::MouseRelatedEvent::MouseRelatedEvent ( )
protected

◆ MouseRelatedEvent() [5/6]

WebCore::MouseRelatedEvent::MouseRelatedEvent ( const AtomicString type,
bool  canBubble,
bool  cancelable,
double  timestamp,
DOMWindow ,
int  detail,
const IntPoint screenLocation,
const IntPoint windowLocation,
bool  ctrlKey,
bool  altKey,
bool  shiftKey,
bool  metaKey,
bool  isSimulated = false 
)
protected

◆ MouseRelatedEvent() [6/6]

WebCore::MouseRelatedEvent::MouseRelatedEvent ( const AtomicString type,
const MouseRelatedEventInit ,
IsTrusted  = IsTrusted::No 
)
protected

Member Function Documentation

◆ absoluteLocation() [1/2]

const LayoutPoint& WebCore::MouseRelatedEvent::absoluteLocation ( ) const
inline

◆ absoluteLocation() [2/2]

const LayoutPoint& WebCore::MouseRelatedEvent::absoluteLocation ( ) const
inline

◆ clientLocation() [1/2]

const LayoutPoint& WebCore::MouseRelatedEvent::clientLocation ( ) const
inline

◆ clientLocation() [2/2]

const LayoutPoint& WebCore::MouseRelatedEvent::clientLocation ( ) const
inline

◆ clientX() [1/2]

int WebCore::MouseRelatedEvent::clientX ( ) const
inline

◆ clientX() [2/2]

int WebCore::MouseRelatedEvent::clientX ( ) const
inline

◆ clientY() [1/2]

int WebCore::MouseRelatedEvent::clientY ( ) const
inline

◆ clientY() [2/2]

int WebCore::MouseRelatedEvent::clientY ( ) const
inline

◆ computePageLocation() [1/2]

void WebCore::MouseRelatedEvent::computePageLocation ( )
protected

◆ computePageLocation() [2/2]

void WebCore::MouseRelatedEvent::computePageLocation ( )
protected

◆ computeRelativePosition() [1/2]

void WebCore::MouseRelatedEvent::computeRelativePosition ( )
protected

◆ computeRelativePosition() [2/2]

void WebCore::MouseRelatedEvent::computeRelativePosition ( )
protected

◆ initCoordinates() [1/4]

void WebCore::MouseRelatedEvent::initCoordinates ( )
protected

◆ initCoordinates() [2/4]

void WebCore::MouseRelatedEvent::initCoordinates ( )
protected

◆ initCoordinates() [3/4]

void WebCore::MouseRelatedEvent::initCoordinates ( const LayoutPoint clientLocation)
protected

◆ initCoordinates() [4/4]

void WebCore::MouseRelatedEvent::initCoordinates ( const LayoutPoint clientLocation)
protected

◆ isSimulated() [1/2]

bool WebCore::MouseRelatedEvent::isSimulated ( ) const
inline

◆ isSimulated() [2/2]

bool WebCore::MouseRelatedEvent::isSimulated ( ) const
inline

◆ layerX() [1/2]

int WebCore::MouseRelatedEvent::layerX ( )
overridevirtual

Reimplemented from WebCore::UIEvent.

◆ layerX() [2/2]

int WebCore::MouseRelatedEvent::layerX ( )
overridevirtual

Reimplemented from WebCore::UIEvent.

◆ layerY() [1/2]

int WebCore::MouseRelatedEvent::layerY ( )
overridevirtual

Reimplemented from WebCore::UIEvent.

◆ layerY() [2/2]

int WebCore::MouseRelatedEvent::layerY ( )
overridevirtual

Reimplemented from WebCore::UIEvent.

◆ offsetX() [1/2]

WEBCORE_EXPORT int WebCore::MouseRelatedEvent::offsetX ( )

◆ offsetX() [2/2]

int WebCore::MouseRelatedEvent::offsetX ( )

◆ offsetY() [1/2]

WEBCORE_EXPORT int WebCore::MouseRelatedEvent::offsetY ( )

◆ offsetY() [2/2]

int WebCore::MouseRelatedEvent::offsetY ( )

◆ pageLocation() [1/2]

virtual const LayoutPoint& WebCore::MouseRelatedEvent::pageLocation ( ) const
virtual

◆ pageLocation() [2/2]

const LayoutPoint & WebCore::MouseRelatedEvent::pageLocation ( ) const
virtual

◆ pageX() [1/2]

int WebCore::MouseRelatedEvent::pageX ( ) const
finalvirtual

Reimplemented from WebCore::UIEvent.

◆ pageX() [2/2]

int WebCore::MouseRelatedEvent::pageX ( ) const
finalvirtual

Reimplemented from WebCore::UIEvent.

◆ pageY() [1/2]

int WebCore::MouseRelatedEvent::pageY ( ) const
finalvirtual

Reimplemented from WebCore::UIEvent.

◆ pageY() [2/2]

int WebCore::MouseRelatedEvent::pageY ( ) const
finalvirtual

Reimplemented from WebCore::UIEvent.

◆ receivedTarget() [1/2]

void WebCore::MouseRelatedEvent::receivedTarget ( )
finalprotectedvirtual

Reimplemented from WebCore::Event.

◆ receivedTarget() [2/2]

void WebCore::MouseRelatedEvent::receivedTarget ( )
finalprotectedvirtual

Reimplemented from WebCore::Event.

◆ screenLocation() [1/2]

const IntPoint& WebCore::MouseRelatedEvent::screenLocation ( ) const
inline

◆ screenLocation() [2/2]

const IntPoint& WebCore::MouseRelatedEvent::screenLocation ( ) const
inline

◆ screenX() [1/2]

int WebCore::MouseRelatedEvent::screenX ( ) const
inline

◆ screenX() [2/2]

int WebCore::MouseRelatedEvent::screenX ( ) const
inline

◆ screenY() [1/2]

int WebCore::MouseRelatedEvent::screenY ( ) const
inline

◆ screenY() [2/2]

int WebCore::MouseRelatedEvent::screenY ( ) const
inline

◆ setAbsoluteLocation() [1/2]

void WebCore::MouseRelatedEvent::setAbsoluteLocation ( const LayoutPoint p)
inline

◆ setAbsoluteLocation() [2/2]

void WebCore::MouseRelatedEvent::setAbsoluteLocation ( const LayoutPoint p)
inline

◆ x() [1/2]

WEBCORE_EXPORT int WebCore::MouseRelatedEvent::x ( ) const

◆ x() [2/2]

int WebCore::MouseRelatedEvent::x ( ) const

◆ y() [1/2]

WEBCORE_EXPORT int WebCore::MouseRelatedEvent::y ( ) const

◆ y() [2/2]

int WebCore::MouseRelatedEvent::y ( ) const

Member Data Documentation

◆ m_clientLocation

LayoutPoint WebCore::MouseRelatedEvent::m_clientLocation
protected

◆ m_screenLocation

IntPoint WebCore::MouseRelatedEvent::m_screenLocation
protected

The documentation for this class was generated from the following files: