Lines Matching refs:WebInputEvent
34 #include "WebInputEvent.h"
56 modifier = WebInputEvent::IsKeyPad;
69 modifier = WebInputEvent::IsKeyPad;
88 modifier = WebInputEvent::IsKeyPad;
92 modifier = WebInputEvent::IsLeft;
94 modifier = WebInputEvent::IsRight;
98 modifier = WebInputEvent::IsLeft;
100 modifier = WebInputEvent::IsRight;
104 modifier = WebInputEvent::IsLeft;
106 modifier = WebInputEvent::IsRight;
109 modifier = WebInputEvent::IsLeft;
112 modifier = WebInputEvent::IsRight;
117 || modifier == WebInputEvent::IsKeyPad
118 || modifier == WebInputEvent::IsLeft
119 || modifier == WebInputEvent::IsRight);
124 static void SetToggleKeyState(WebInputEvent* event)
128 event->modifiers |= WebInputEvent::NumLockOn;
130 event->modifiers |= WebInputEvent::CapsLockOn;
152 result.type = WebInputEvent::RawKeyDown;
157 result.type = WebInputEvent::KeyUp;
160 result.type = WebInputEvent::Char;
164 result.type = WebInputEvent::Char;
166 result.type = WebInputEvent::Char;
172 if (result.type == WebInputEvent::Char || result.type == WebInputEvent::RawKeyDown) {
176 if (result.type != WebInputEvent::Char)
180 result.modifiers |= WebInputEvent::ShiftKey;
182 result.modifiers |= WebInputEvent::ControlKey;
184 result.modifiers |= WebInputEvent::AltKey;
189 result.modifiers |= WebInputEvent::IsAutoRepeat;
218 WebMouseEvent result; //(WebInputEvent::Uninitialized());
222 result.type = WebInputEvent::MouseMove;
233 result.type = WebInputEvent::MouseLeave;
241 result.type = WebInputEvent::MouseDown;
246 result.type = WebInputEvent::MouseDown;
251 result.type = WebInputEvent::MouseDown;
255 result.type = WebInputEvent::MouseUp;
259 result.type = WebInputEvent::MouseUp;
263 result.type = WebInputEvent::MouseUp;
303 if (result.type == WebInputEvent::MouseDown) {
313 } else if (result.type == WebInputEvent::MouseMove
314 || result.type == WebInputEvent::MouseLeave) {
327 result.modifiers |= WebInputEvent::ControlKey;
329 result.modifiers |= WebInputEvent::ShiftKey;
331 result.modifiers |= WebInputEvent::AltKey;
333 result.modifiers |= WebInputEvent::LeftButtonDown;
335 result.modifiers |= WebInputEvent::MiddleButtonDown;
337 result.modifiers |= WebInputEvent::RightButtonDown;
348 WebMouseWheelEvent result; //(WebInputEvent::Uninitialized());
350 result.type = WebInputEvent::MouseWheel;
425 result.modifiers |= WebInputEvent::ShiftKey;
427 result.modifiers |= WebInputEvent::ControlKey;
429 result.modifiers |= WebInputEvent::AltKey;
431 result.modifiers |= WebInputEvent::LeftButtonDown;
433 result.modifiers |= WebInputEvent::MiddleButtonDown;
435 result.modifiers |= WebInputEvent::RightButtonDown;