case eXULPopupType_tooltip: case eXULPopupType_blur:  break;
XULPopupListenerImpl::MouseDown(nsIDOMEvent* aMouseEvent){  PRUint32 button;  nsCOMPtr<nsIDOMUIEvent>uiEvent;  uiEvent = do_QueryInterface(aMouseEvent);  if (!uiEvent) {    //non-ui event passed in.  bad things.    return NS_OK;  }  switch (popupType) {    case eXULPopupType_popup:      // Check for left mouse button down      uiEvent->GetButton(&button);      if (button == 1) {        // Time to launch a popup menu.        LaunchPopup(aMouseEvent);      }      break;    case eXULPopupType_context:#ifdef	XP_MAC      // XXX: Handle Mac (currently checks if CTRL key is down)	PRBool	ctrlKey = PR_FALSE;	uiEvent->GetCtrlKey(&ctrlKey);	if (ctrlKey == PR_TRUE)#else      // Check for right mouse button down      uiEvent->GetButton(&button);      if (button == 3)#endif      {        // Time to launch a context menu.        LaunchPopup(aMouseEvent);      }      break;  }  return NS_OK;}