::OSEventAvail(0, &scrollEvent);
InitializeEventRecord(&scrollEvent);
nsresult nsPluginInstanceOwner::ScrollPositionWillChange(nsIScrollableView* aScrollable, nscoord aX, nscoord aY){#ifdef XP_MAC    if (mInstance != NULL) {        EventRecord scrollEvent;        ::OSEventAvail(0, &scrollEvent);        scrollEvent.what = nsPluginEventType_ScrollingBeginsEvent;                nsPluginPort* pluginPort = GetPluginPort();        nsPluginEvent pluginEvent = { &scrollEvent, nsPluginPlatformWindowRef(pluginPort->port) };                PRBool eventHandled = PR_FALSE;        mInstance->HandleEvent(&pluginEvent, &eventHandled);    }#endif    return NS_OK;}