Lines Matching refs:XEvent
221 XEvent xevent;
222 memset(&xevent, 0, sizeof(XEvent));
223 XGraphicsExposeEvent& exposeEvent = xevent.xgraphicsexpose;
239 NPP_HandleEvent(&xevent);
253 static inline void initializeXEvent(XEvent& event)
255 memset(&event, 0, sizeof(XEvent));
283 static inline void setCommonMouseEventFields(XEventType& xEvent, const WebMouseEvent& webEvent, const WebCore::IntPoint& pluginLocation)
285 xEvent.root = rootWindowID();
286 xEvent.subwindow = 0;
287 xEvent.time = xTimeStamp(webEvent.timestamp());
288 xEvent.x = webEvent.position().x() - pluginLocation.x();
289 xEvent.y = webEvent.position().y() - pluginLocation.y();
290 xEvent.x_root = webEvent.globalPosition().x();
291 xEvent.y_root = webEvent.globalPosition().y();
292 xEvent.state = xKeyModifiers(webEvent);
293 xEvent.same_screen = true;
296 static inline void setXMotionEventFields(XEvent& xEvent, const WebMouseEvent& webEvent, const WebCore::IntPoint& pluginLocation)
298 XMotionEvent& xMotion = xEvent.xmotion;
303 static inline void setXButtonEventFields(XEvent& xEvent, const WebMouseEvent& webEvent, const WebCore::IntPoint& pluginLocation)
305 XButtonEvent& xButton = xEvent.xbutton;
322 static inline void setXCrossingEventFields(XEvent& xEvent, const WebMouseEvent& webEvent, const WebCore::IntPoint& pluginLocation, int type)
324 XCrossingEvent& xCrossing = xEvent.xcrossing;
338 XEvent xEvent;
339 initializeXEvent(xEvent);
344 setXButtonEventFields(xEvent, event, m_frameRect.location());
347 setXMotionEventFields(xEvent, event, m_frameRect.location());
351 return NPP_HandleEvent(&xEvent);
377 XEvent xEvent;
378 initializeXEvent(xEvent);
379 setXCrossingEventFields(xEvent, event, m_frameRect.location(), EnterNotify);
381 return NPP_HandleEvent(&xEvent);
389 XEvent xEvent;
390 initializeXEvent(xEvent);
391 setXCrossingEventFields(xEvent, event, m_frameRect.location(), LeaveNotify);
393 return NPP_HandleEvent(&xEvent);
396 static inline void setXKeyEventFields(XEvent& xEvent, const WebKeyboardEvent& webEvent)
398 xEvent.xany.type = (webEvent.type() == WebEvent::KeyDown) ? kKeyPressType : kKeyReleaseType;
399 XKeyEvent& xKey = xEvent.xkey;
421 XEvent xEvent;
422 initializeXEvent(xEvent);
423 setXKeyEventFields(xEvent, event);
425 return NPP_HandleEvent(&xEvent);