Home | History | Annotate | Download | only in web

Lines Matching refs:WebInputEvent

34 #include "WebInputEvent.h"
82 if (e.modifiers & WebInputEvent::ShiftKey)
84 if (e.modifiers & WebInputEvent::ControlKey)
86 if (e.modifiers & WebInputEvent::AltKey)
88 if (e.modifiers & WebInputEvent::MetaKey)
96 case WebInputEvent::MouseMove:
97 case WebInputEvent::MouseLeave: // synthesize a move event
101 case WebInputEvent::MouseDown:
105 case WebInputEvent::MouseUp:
131 if (e.modifiers & WebInputEvent::ShiftKey)
133 if (e.modifiers & WebInputEvent::ControlKey)
135 if (e.modifiers & WebInputEvent::AltKey)
137 if (e.modifiers & WebInputEvent::MetaKey)
157 case WebInputEvent::GestureScrollBegin:
160 case WebInputEvent::GestureScrollEnd:
163 case WebInputEvent::GestureScrollUpdate:
168 case WebInputEvent::GestureScrollUpdateWithoutPropagation:
173 case WebInputEvent::GestureTap:
179 case WebInputEvent::GestureTapUnconfirmed:
183 case WebInputEvent::GestureTapDown:
187 case WebInputEvent::GestureTapCancel:
190 case WebInputEvent::GestureDoubleTap:
197 case WebInputEvent::GestureTwoFingerTap:
201 case WebInputEvent::GestureLongPress:
205 case WebInputEvent::GestureLongTap:
209 case WebInputEvent::GesturePinchBegin:
212 case WebInputEvent::GesturePinchEnd:
215 case WebInputEvent::GesturePinchUpdate:
228 if (e.modifiers & WebInputEvent::ShiftKey)
230 if (e.modifiers & WebInputEvent::ControlKey)
232 if (e.modifiers & WebInputEvent::AltKey)
234 if (e.modifiers & WebInputEvent::MetaKey)
240 inline PlatformEvent::Type toPlatformKeyboardEventType(WebInputEvent::Type type)
243 case WebInputEvent::KeyUp:
245 case WebInputEvent::KeyDown:
247 case WebInputEvent::RawKeyDown:
249 case WebInputEvent::Char:
263 m_autoRepeat = (e.modifiers & WebInputEvent::IsAutoRepeat);
265 m_isKeypad = (e.modifiers & WebInputEvent::IsKeyPad);
269 if (e.modifiers & WebInputEvent::ShiftKey)
271 if (e.modifiers & WebInputEvent::ControlKey)
273 if (e.modifiers & WebInputEvent::AltKey)
275 if (e.modifiers & WebInputEvent::MetaKey)
283 if (e.modifiers & WebInputEvent::IsLeft)
285 else if (e.modifiers & WebInputEvent::IsRight)
288 if (e.modifiers & WebInputEvent::IsLeft)
290 else if (e.modifiers & WebInputEvent::IsRight)
293 if (e.modifiers & WebInputEvent::IsLeft)
295 else if (e.modifiers & WebInputEvent::IsRight)
332 inline PlatformEvent::Type toPlatformTouchEventType(const WebInputEvent::Type type)
335 case WebInputEvent::TouchStart:
337 case WebInputEvent::TouchMove:
339 case WebInputEvent::TouchEnd:
341 case WebInputEvent::TouchCancel:
399 if (event.modifiers & WebInputEvent::ShiftKey)
401 if (event.modifiers & WebInputEvent::ControlKey)
403 if (event.modifiers & WebInputEvent::AltKey)
405 if (event.modifiers & WebInputEvent::MetaKey)
418 modifiers |= WebInputEvent::ControlKey;
420 modifiers |= WebInputEvent::ShiftKey;
422 modifiers |= WebInputEvent::AltKey;
424 modifiers |= WebInputEvent::MetaKey;
454 type = WebInputEvent::MouseMove;
456 type = WebInputEvent::MouseLeave;
458 type = WebInputEvent::MouseEnter;
460 type = WebInputEvent::MouseDown;
462 type = WebInputEvent::MouseUp;
464 type = WebInputEvent::ContextMenu;
484 modifiers |= WebInputEvent::LeftButtonDown;
487 modifiers |= WebInputEvent::MiddleButtonDown;
490 modifiers |= WebInputEvent::RightButtonDown;
525 modifiers |= WebInputEvent::LeftButtonDown;
583 type = WebInputEvent::MouseWheel;
598 type = WebInputEvent::KeyUp;
600 type = WebInputEvent::Char;
606 modifiers |= WebInputEvent::IsKeyPad;
608 modifiers |= WebInputEvent::IsLeft;
610 modifiers |= WebInputEvent::IsRight;
628 WebInputEvent::Type toWebKeyboardEventType(PlatformEvent::Type type)
632 return WebInputEvent::KeyUp;
634 return WebInputEvent::KeyDown;
636 return WebInputEvent::RawKeyDown;
638 return WebInputEvent::Char;
640 return WebInputEvent::Undefined;
648 newModifiers |= WebInputEvent::ShiftKey;
650 newModifiers |= WebInputEvent::ControlKey;
652 newModifiers |= WebInputEvent::AltKey;
654 newModifiers |= WebInputEvent::MetaKey;
663 modifiers |= WebInputEvent::IsAutoRepeat;
665 modifiers |= WebInputEvent::IsKeyPad;