Pepper_31_C_interfaces
Public Attributes | List of all members
PPB_KeyboardInputEvent_Dev_0_2 Struct Reference

#include <ppb_keyboard_input_event_dev.h>

Collaboration diagram for PPB_KeyboardInputEvent_Dev_0_2:
Collaboration graph

Public Attributes

PP_Bool(* SetUsbKeyCode )(PP_Resource key_event, uint32_t usb_key_code)
 
uint32_t(* GetUsbKeyCode )(PP_Resource key_event)
 
struct PP_Var(* GetCode )(PP_Resource key_event)
 

Detailed Description

The PPB_KeyboardInputEvent_Dev interface is an extension to the PPB_KeyboardInputEvent interface that provides

Definition at line 40 of file ppb_keyboard_input_event_dev.h.

Member Data Documentation

struct PP_Var(* PPB_KeyboardInputEvent_Dev_0_2::GetCode)(PP_Resource key_event)

GetCode() returns the DOM |code| field for this keyboard event, as defined by the UI Events spec: http://www.w3.org/TR/uievents/

Parameters
[in]key_eventThe key event for which to return the key code.
Returns
The string that contains the DOM |code| for the keyboard event.

Definition at line 75 of file ppb_keyboard_input_event_dev.h.

uint32_t(* PPB_KeyboardInputEvent_Dev_0_2::GetUsbKeyCode)(PP_Resource key_event)

GetUsbKeyCode() returns the USB key code associated with this keyboard event.

Parameters
[in]key_eventThe key event for which to return the key code.
Returns
The USB key code field for the keyboard event. If there is no USB scancode associated with this event, or if the PP_Resource does not support the PPB_InputEvent_API (i.e., it is not an input event), then a 0 is returned.

Definition at line 66 of file ppb_keyboard_input_event_dev.h.

PP_Bool(* PPB_KeyboardInputEvent_Dev_0_2::SetUsbKeyCode)(PP_Resource key_event, uint32_t usb_key_code)

This sets a USB key code in the given PP_Resource. It is intended that this method be called immediately after any call to Create.

Parameters
[in]key_eventA PP_Resource created by PPB_KeyboardInputEvent's Create method.
[in]usb_key_codeThe USB key code to associate with this key_event.
Returns
PP_TRUE if the USB key code was set successfully.

Definition at line 54 of file ppb_keyboard_input_event_dev.h.


The documentation for this struct was generated from the following file: