Inheritance diagram for pp::KeyboardInputEvent:

Public Member Functions
| KeyboardInputEvent () | |
| KeyboardInputEvent (const InputEvent &event) | |
| KeyboardInputEvent (const InstanceHandle &instance, PP_InputEvent_Type type, PP_TimeTicks time_stamp, uint32_t modifiers, uint32_t key_code, const Var &character_text) | |
| KeyboardInputEvent (const InstanceHandle &instance, PP_InputEvent_Type type, PP_TimeTicks time_stamp, uint32_t modifiers, uint32_t key_code, const Var &character_text, const Var &code) | |
| uint32_t | GetKeyCode () const |
| Var | GetCharacterText () const |
| Var | GetCode () const |
Constructor & Destructor Documentation
Constructs an is_null() keyboard input event object.
| pp::KeyboardInputEvent::KeyboardInputEvent | ( | const InputEvent & | event | ) | [explicit] |
| pp::KeyboardInputEvent::KeyboardInputEvent | ( | const InstanceHandle & | instance, |
| PP_InputEvent_Type | type, | ||
| PP_TimeTicks | time_stamp, | ||
| uint32_t | modifiers, | ||
| uint32_t | key_code, | ||
| const Var & | character_text | ||
| ) |
Constructs a keyboard input even from the given parameters.
- Parameters:
[in] instance The instance for which this event occurred. [in] type A PP_InputEvent_Typeidentifying the type of input event.[in] time_stamp A PP_TimeTicksindicating the time when the event occurred.[in] modifiers A bit field combination of the PP_InputEvent_Modifierflags.[in] key_code This value reflects the DOM KeyboardEvent keyCodefield. Chrome populates this with the Windows-style Virtual Key code of the key.[in] character_text This value represents the typed character as a UTF-8 string.
| pp::KeyboardInputEvent::KeyboardInputEvent | ( | const InstanceHandle & | instance, |
| PP_InputEvent_Type | type, | ||
| PP_TimeTicks | time_stamp, | ||
| uint32_t | modifiers, | ||
| uint32_t | key_code, | ||
| const Var & | character_text, | ||
| const Var & | code | ||
| ) |
Constructs a keyboard input even from the given parameters.
- Parameters:
[in] instance The instance for which this event occurred. [in] type A PP_InputEvent_Typeidentifying the type of input event.[in] time_stamp A PP_TimeTicksindicating the time when the event occurred.[in] modifiers A bit field combination of the PP_InputEvent_Modifierflags.[in] key_code This value reflects the DOM KeyboardEvent keyCodefield. Chrome populates this with the Windows-style Virtual Key code of the key.[in] character_text This value represents the typed character as a UTF-8 string. [in] code This value reflects the DOM KeyboardEvent codefield, which identifies the physical key associated with the event.
Member Function Documentation
Returns the typed character for the given character event.
- Returns:
- A string var representing a single typed character for character input events. For non-character input events the return value will be an undefined var.
Returns the DOM |code| for the keyboard event.
- Returns:
- A string var representing a physical key that was pressed to generate this event.
| uint32_t pp::KeyboardInputEvent::GetKeyCode | ( | ) | const |
Returns the DOM keyCode field for the keyboard event.
Chrome populates this with the Windows-style Virtual Key code of the key.
The documentation for this class was generated from the following file: