45
edits
Changes
→Pepper NPAPI Event Structures
struct NPKeyEvent {
// Structure layout must match between trusted & untrusted code.
};
struct NPCharacterEvent {
// End of Pepper event specification version 1.0
// Additional future key event fields go here...
struct NPMouseEvent {
// Structure layout must match between trusted & untrusted code.
// End of Pepper event specification version 1.0
// Additional future mouse event fields go here...
struct NPMouseWheelEvent {
// Structure layout must match between trusted & untrusted code.
float deltaX; // [4] : Positive deltaX indicate scroll left, in scroll wheel units.
float deltaY; // [8] : Positive deltaY indicate scroll up, in scroll wheel units.
float wheelTicksY; // [16]: Positive wheelTicksY indicate scroll up.
// Wheel ticks can be fractional values on certain devices.
// End of Pepper event specification version 1.0
// Additional future mouse wheel event fields go here...
// Note: this area is under construction
};
// Structure layout must match between trusted & untrusted code.
// Minimizing may also include becoming a background/foreground tab.
// 0 = transitioning out of minimized state
// 1 = transitioning to a minimized state
// Structure layout must match between trusted & untrusted code.
// The embedded Pepper area is gaining or losing keyboard focus.
// 0 = losing focus
// 1 = gaining focus
struct NPEvent {
// Structure layout must match between trusted & untrusted code.
double timeStampSeconds; // [8] : Time of creation; seconds since epoch.
};
// Keycodes used by NPKeyEvent.normalizedKeyCode (keyboard_codes_posix.h)
enum {