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

#include <PlatformKeyboardEvent.h>

Inheritance diagram for WebCore::PlatformKeyboardEvent:
WebCore::PlatformEvent WebCore::PlatformEvent WebCore::PlatformKeyboardEventBuilder WebCore::PlatformKeyboardEventBuilder WebKit::WebKit2PlatformKeyboardEvent

Public Member Functions

 PlatformKeyboardEvent ()
 
 PlatformKeyboardEvent (Type type, const String &text, const String &unmodifiedText, const String &keyIdentifier, int windowsVirtualKeyCode, bool isAutoRepeat, bool isKeypad, bool isSystemKey, OptionSet< Modifier > modifiers, double timestamp)
 
WEBCORE_EXPORT void disambiguateKeyDownEvent (Type, bool backwardCompatibilityMode=false)
 
String text () const
 
String unmodifiedText () const
 
String keyIdentifier () const
 
int windowsVirtualKeyCode () const
 
void setWindowsVirtualKeyCode (int code)
 
bool isAutoRepeat () const
 
bool isKeypad () const
 
bool isSystemKey () const
 
 PlatformKeyboardEvent ()
 
 PlatformKeyboardEvent (Type type, const String &text, const String &unmodifiedText, const String &keyIdentifier, int windowsVirtualKeyCode, bool isAutoRepeat, bool isKeypad, bool isSystemKey, OptionSet< Modifier > modifiers, double timestamp)
 
WEBCORE_EXPORT void disambiguateKeyDownEvent (Type, bool backwardCompatibilityMode=false)
 
String text () const
 
String unmodifiedText () const
 
String keyIdentifier () const
 
int windowsVirtualKeyCode () const
 
void setWindowsVirtualKeyCode (int code)
 
bool isAutoRepeat () const
 
bool isKeypad () const
 
bool isSystemKey () const
 
- Public Member Functions inherited from WebCore::PlatformEvent
Type type () const
 
bool shiftKey () const
 
bool ctrlKey () const
 
bool altKey () const
 
bool metaKey () const
 
OptionSet< Modifiermodifiers () const
 
double timestamp () const
 
Type type () const
 
bool shiftKey () const
 
bool ctrlKey () const
 
bool altKey () const
 
bool metaKey () const
 
OptionSet< Modifiermodifiers () const
 
double timestamp () const
 

Static Public Member Functions

static bool currentCapsLockState ()
 
static void getCurrentModifierState (bool &shiftKey, bool &ctrlKey, bool &altKey, bool &metaKey)
 
static bool currentCapsLockState ()
 
static void getCurrentModifierState (bool &shiftKey, bool &ctrlKey, bool &altKey, bool &metaKey)
 

Protected Attributes

String m_text
 
String m_unmodifiedText
 
String m_keyIdentifier
 
int m_windowsVirtualKeyCode
 
bool m_autoRepeat
 
bool m_isKeypad
 
bool m_isSystemKey
 
- Protected Attributes inherited from WebCore::PlatformEvent
unsigned m_type
 
OptionSet< Modifierm_modifiers
 
double m_timestamp
 

Additional Inherited Members

- Public Types inherited from WebCore::PlatformEvent
enum  Type : uint8_t {
  NoType = 0, KeyDown, KeyUp, RawKeyDown,
  Char, MouseMoved, MousePressed, MouseReleased,
  MouseForceChanged, MouseForceDown, MouseForceUp, MouseScroll,
  Wheel, NoType = 0, KeyDown, KeyUp,
  RawKeyDown, Char, MouseMoved, MousePressed,
  MouseReleased, MouseForceChanged, MouseForceDown, MouseForceUp,
  MouseScroll, Wheel
}
 
enum  Modifier {
  Modifier::AltKey = 1 << 0, Modifier::CtrlKey = 1 << 1, Modifier::MetaKey = 1 << 2, Modifier::ShiftKey = 1 << 3,
  Modifier::CapsLockKey = 1 << 4, Modifier::AltKey = 1 << 0, Modifier::CtrlKey = 1 << 1, Modifier::MetaKey = 1 << 2,
  Modifier::ShiftKey = 1 << 3, Modifier::CapsLockKey = 1 << 4
}
 
enum  Type : uint8_t {
  NoType = 0, KeyDown, KeyUp, RawKeyDown,
  Char, MouseMoved, MousePressed, MouseReleased,
  MouseForceChanged, MouseForceDown, MouseForceUp, MouseScroll,
  Wheel, NoType = 0, KeyDown, KeyUp,
  RawKeyDown, Char, MouseMoved, MousePressed,
  MouseReleased, MouseForceChanged, MouseForceDown, MouseForceUp,
  MouseScroll, Wheel
}
 
enum  Modifier {
  Modifier::AltKey = 1 << 0, Modifier::CtrlKey = 1 << 1, Modifier::MetaKey = 1 << 2, Modifier::ShiftKey = 1 << 3,
  Modifier::CapsLockKey = 1 << 4, Modifier::AltKey = 1 << 0, Modifier::CtrlKey = 1 << 1, Modifier::MetaKey = 1 << 2,
  Modifier::ShiftKey = 1 << 3, Modifier::CapsLockKey = 1 << 4
}
 
- Protected Member Functions inherited from WebCore::PlatformEvent
 PlatformEvent ()
 
 PlatformEvent (Type type)
 
 PlatformEvent (Type type, OptionSet< Modifier > modifiers, double timestamp)
 
 PlatformEvent (Type type, bool shiftKey, bool ctrlKey, bool altKey, bool metaKey, double timestamp)
 
 ~PlatformEvent ()
 
 PlatformEvent ()
 
 PlatformEvent (Type type)
 
 PlatformEvent (Type type, OptionSet< Modifier > modifiers, double timestamp)
 
 PlatformEvent (Type type, bool shiftKey, bool ctrlKey, bool altKey, bool metaKey, double timestamp)
 
 ~PlatformEvent ()
 

Constructor & Destructor Documentation

◆ PlatformKeyboardEvent() [1/4]

WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent ( )
inline

◆ PlatformKeyboardEvent() [2/4]

WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent ( Type  type,
const String text,
const String unmodifiedText,
const String keyIdentifier,
int  windowsVirtualKeyCode,
bool  isAutoRepeat,
bool  isKeypad,
bool  isSystemKey,
OptionSet< Modifier modifiers,
double  timestamp 
)
inline

◆ PlatformKeyboardEvent() [3/4]

WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent ( )
inline

◆ PlatformKeyboardEvent() [4/4]

WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent ( Type  type,
const String text,
const String unmodifiedText,
const String keyIdentifier,
int  windowsVirtualKeyCode,
bool  isAutoRepeat,
bool  isKeypad,
bool  isSystemKey,
OptionSet< Modifier modifiers,
double  timestamp 
)
inline

Member Function Documentation

◆ currentCapsLockState() [1/2]

bool WebCore::PlatformKeyboardEvent::currentCapsLockState ( )
static

◆ currentCapsLockState() [2/2]

static bool WebCore::PlatformKeyboardEvent::currentCapsLockState ( )
static

◆ disambiguateKeyDownEvent() [1/2]

void WebCore::PlatformKeyboardEvent::disambiguateKeyDownEvent ( Type  type,
bool  backwardCompatibilityMode = false 
)

◆ disambiguateKeyDownEvent() [2/2]

WEBCORE_EXPORT void WebCore::PlatformKeyboardEvent::disambiguateKeyDownEvent ( Type  ,
bool  backwardCompatibilityMode = false 
)

◆ getCurrentModifierState() [1/2]

void WebCore::PlatformKeyboardEvent::getCurrentModifierState ( bool &  shiftKey,
bool &  ctrlKey,
bool &  altKey,
bool &  metaKey 
)
static

◆ getCurrentModifierState() [2/2]

static void WebCore::PlatformKeyboardEvent::getCurrentModifierState ( bool &  shiftKey,
bool &  ctrlKey,
bool &  altKey,
bool &  metaKey 
)
static

◆ isAutoRepeat() [1/2]

bool WebCore::PlatformKeyboardEvent::isAutoRepeat ( ) const
inline

◆ isAutoRepeat() [2/2]

bool WebCore::PlatformKeyboardEvent::isAutoRepeat ( ) const
inline

◆ isKeypad() [1/2]

bool WebCore::PlatformKeyboardEvent::isKeypad ( ) const
inline

◆ isKeypad() [2/2]

bool WebCore::PlatformKeyboardEvent::isKeypad ( ) const
inline

◆ isSystemKey() [1/2]

bool WebCore::PlatformKeyboardEvent::isSystemKey ( ) const
inline

◆ isSystemKey() [2/2]

bool WebCore::PlatformKeyboardEvent::isSystemKey ( ) const
inline

◆ keyIdentifier() [1/2]

String WebCore::PlatformKeyboardEvent::keyIdentifier ( ) const
inline

◆ keyIdentifier() [2/2]

String WebCore::PlatformKeyboardEvent::keyIdentifier ( ) const
inline

◆ setWindowsVirtualKeyCode() [1/2]

void WebCore::PlatformKeyboardEvent::setWindowsVirtualKeyCode ( int  code)
inline

◆ setWindowsVirtualKeyCode() [2/2]

void WebCore::PlatformKeyboardEvent::setWindowsVirtualKeyCode ( int  code)
inline

◆ text() [1/2]

String WebCore::PlatformKeyboardEvent::text ( ) const
inline

◆ text() [2/2]

String WebCore::PlatformKeyboardEvent::text ( ) const
inline

◆ unmodifiedText() [1/2]

String WebCore::PlatformKeyboardEvent::unmodifiedText ( ) const
inline

◆ unmodifiedText() [2/2]

String WebCore::PlatformKeyboardEvent::unmodifiedText ( ) const
inline

◆ windowsVirtualKeyCode() [1/2]

int WebCore::PlatformKeyboardEvent::windowsVirtualKeyCode ( ) const
inline

◆ windowsVirtualKeyCode() [2/2]

int WebCore::PlatformKeyboardEvent::windowsVirtualKeyCode ( ) const
inline

Member Data Documentation

◆ m_autoRepeat

bool WebCore::PlatformKeyboardEvent::m_autoRepeat
protected

◆ m_isKeypad

bool WebCore::PlatformKeyboardEvent::m_isKeypad
protected

◆ m_isSystemKey

bool WebCore::PlatformKeyboardEvent::m_isSystemKey
protected

◆ m_keyIdentifier

String WebCore::PlatformKeyboardEvent::m_keyIdentifier
protected

◆ m_text

String WebCore::PlatformKeyboardEvent::m_text
protected

◆ m_unmodifiedText

String WebCore::PlatformKeyboardEvent::m_unmodifiedText
protected

◆ m_windowsVirtualKeyCode

int WebCore::PlatformKeyboardEvent::m_windowsVirtualKeyCode
protected

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