• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/WebKit2-7537.78.2/WebProcess/Plugins/Netscape/x11/

Lines Matching refs:xEvent

431 static inline void setCommonMouseEventFields(XEventType& xEvent, const WebEventType& webEvent, const WebCore::IntPoint& pluginLocation)
433 xEvent.root = rootWindowID();
434 xEvent.subwindow = 0;
435 xEvent.time = xTimeStamp(webEvent.timestamp());
436 xEvent.x = webEvent.position().x() - pluginLocation.x();
437 xEvent.y = webEvent.position().y() - pluginLocation.y();
438 xEvent.x_root = webEvent.globalPosition().x();
439 xEvent.y_root = webEvent.globalPosition().y();
440 xEvent.state = xKeyModifiers(webEvent);
441 xEvent.same_screen = true;
444 static inline void setXMotionEventFields(XEvent& xEvent, const WebMouseEvent& webEvent, const WebCore::IntPoint& pluginLocation)
446 XMotionEvent& xMotion = xEvent.xmotion;
451 static inline void setXButtonEventFields(XEvent& xEvent, const WebMouseEvent& webEvent, const WebCore::IntPoint& pluginLocation)
453 XButtonEvent& xButton = xEvent.xbutton;
473 static inline void setXButtonEventFieldsByWebWheelEvent(XEvent& xEvent, const WebWheelEvent& webEvent, const WebCore::IntPoint& pluginLocation)
475 XButtonEvent& xButton = xEvent.xbutton;
493 static inline void setXCrossingEventFields(XEvent& xEvent, const WebMouseEvent& webEvent, const WebCore::IntPoint& pluginLocation, int type)
495 XCrossingEvent& xCrossing = xEvent.xcrossing;
514 XEvent xEvent;
515 initializeXEvent(xEvent);
520 setXButtonEventFields(xEvent, event, convertToRootView(IntPoint()));
523 setXMotionEventFields(xEvent, event, convertToRootView(IntPoint()));
545 return !NPP_HandleEvent(&xEvent);
560 XEvent xEvent;
561 initializeXEvent(xEvent);
562 setXButtonEventFieldsByWebWheelEvent(xEvent, event, convertToRootView(IntPoint()));
564 return !NPP_HandleEvent(&xEvent);
572 XEvent xEvent;
573 initializeXEvent(xEvent);
574 XFocusChangeEvent& focusEvent = xEvent.xfocus;
579 NPP_HandleEvent(&xEvent);
592 XEvent xEvent;
593 initializeXEvent(xEvent);
594 setXCrossingEventFields(xEvent, event, convertToRootView(IntPoint()), EnterNotify);
596 return !NPP_HandleEvent(&xEvent);
604 XEvent xEvent;
605 initializeXEvent(xEvent);
606 setXCrossingEventFields(xEvent, event, convertToRootView(IntPoint()), LeaveNotify);
608 return !NPP_HandleEvent(&xEvent);
611 static inline void setXKeyEventFields(XEvent& xEvent, const WebKeyboardEvent& webEvent)
613 xEvent.xany.type = (webEvent.type() == WebEvent::KeyDown) ? kKeyPressType : kKeyReleaseType;
614 XKeyEvent& xKey = xEvent.xkey;
636 XEvent xEvent;
637 initializeXEvent(xEvent);
638 setXKeyEventFields(xEvent, event);
640 return !NPP_HandleEvent(&xEvent);