EventRecord* event = (EventRecord*) anEvent.nativeMsg;
EventRecord* event = (EventRecord*)anEvent.nativeMsg; if (event == NULL || event->what == nullEvent) { EventRecord macEvent; GUItoMacEvent(anEvent, macEvent); event = &macEvent; }
nsEventStatus nsPluginInstanceOwner::ProcessEvent(const nsGUIEvent & anEvent){	nsEventStatus rv = nsEventStatus_eIgnore;#ifdef XP_MAC	if (mInstance != NULL) {		EventRecord* event = (EventRecord*) anEvent.nativeMsg;		nsPluginPort* port = (nsPluginPort*)mWidget->GetNativeData(NS_NATIVE_PLUGIN_PORT);		nsPluginEvent pluginEvent = { event, nsPluginPlatformWindowRef(port->port) };		PRBool eventHandled = PR_FALSE;		mInstance->HandleEvent(&pluginEvent, &eventHandled);		if (eventHandled)			rv = nsEventStatus_eConsumeNoDefault;	}#endif	return rv;}