webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
WebKit::WebEvent Class Reference

#include <WebEvent.h>

Inheritance diagram for WebKit::WebEvent:
WebKit::WebKeyboardEvent WebKit::WebMouseEvent WebKit::WebWheelEvent WebKit::NativeWebKeyboardEvent WebKit::NativeWebMouseEvent WebKit::NativeWebWheelEvent

Public Types

enum  Type {
  NoType = -1, MouseDown, MouseUp, MouseMove,
  MouseForceChanged, MouseForceDown, MouseForceUp, Wheel,
  KeyDown, KeyUp, RawKeyDown, Char
}
 
enum  Modifiers {
  ShiftKey = 1 << 0, ControlKey = 1 << 1, AltKey = 1 << 2, MetaKey = 1 << 3,
  CapsLockKey = 1 << 4
}
 

Public Member Functions

Type type () const
 
bool shiftKey () const
 
bool controlKey () const
 
bool altKey () const
 
bool metaKey () const
 
bool capsLockKey () const
 
Modifiers modifiers () const
 
double timestamp () const
 

Protected Member Functions

 WebEvent ()
 
 WebEvent (Type, Modifiers, double timestamp)
 
void encode (IPC::Encoder &) const
 

Static Protected Member Functions

static bool decode (IPC::Decoder &, WebEvent &)
 

Member Enumeration Documentation

◆ Modifiers

Enumerator
ShiftKey 
ControlKey 
AltKey 
MetaKey 
CapsLockKey 

◆ Type

Enumerator
NoType 
MouseDown 
MouseUp 
MouseMove 
MouseForceChanged 
MouseForceDown 
MouseForceUp 
Wheel 
KeyDown 
KeyUp 
RawKeyDown 
Char 

Constructor & Destructor Documentation

◆ WebEvent() [1/2]

WebKit::WebEvent::WebEvent ( )
protected

◆ WebEvent() [2/2]

WebKit::WebEvent::WebEvent ( Type  type,
Modifiers  modifiers,
double  timestamp 
)
protected

Member Function Documentation

◆ altKey()

bool WebKit::WebEvent::altKey ( ) const
inline

◆ capsLockKey()

bool WebKit::WebEvent::capsLockKey ( ) const
inline

◆ controlKey()

bool WebKit::WebEvent::controlKey ( ) const
inline

◆ decode()

bool WebKit::WebEvent::decode ( IPC::Decoder decoder,
WebEvent result 
)
staticprotected

◆ encode()

void WebKit::WebEvent::encode ( IPC::Encoder encoder) const
protected

◆ metaKey()

bool WebKit::WebEvent::metaKey ( ) const
inline

◆ modifiers()

Modifiers WebKit::WebEvent::modifiers ( ) const
inline

◆ shiftKey()

bool WebKit::WebEvent::shiftKey ( ) const
inline

◆ timestamp()

double WebKit::WebEvent::timestamp ( ) const
inline

◆ type()

Type WebKit::WebEvent::type ( ) const
inline

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