nsButtonBoxFrame::MouseClicked (nsIPresContext* aPresContext) { nsresult rv = NS_OK;   nsEventStatus status = nsEventStatus_eIgnore; nsMouseEvent event; event.eventStructType = NS_EVENT; event.message = NS_MENU_ACTION; event.isShift = PR_FALSE; event.isControl = PR_FALSE; event.isAlt = PR_FALSE; event.isMeta = PR_FALSE; event.clickCount = 0; event.widget = nsnull;   nsCOMPtr<nsIPresShell> shell; rv = aPresContext->GetShell(getter_AddRefs(shell)); if (NS_SUCCEEDED(rv) && shell) { shell->HandleDOMEventWithTarget(mContent, &event, &status); } }
virtual void MouseClicked (nsPresContext* aPresContext, nsGUIEvent* aEvent) { DoMouseClick(aEvent, PR_FALSE); }
nsButtonBoxFrame::MouseClicked (nsIPresContext* aPresContext) {  nsresult rv = NS_OK;  // Execute the oncommand event handler.  nsEventStatus status = nsEventStatus_eIgnore;  nsMouseEvent event;  event.eventStructType = NS_EVENT;  event.message = NS_MENU_ACTION;  event.isShift = PR_FALSE;  event.isControl = PR_FALSE;  event.isAlt = PR_FALSE;  event.isMeta = PR_FALSE;  event.clickCount = 0;  event.widget = nsnull;  // Have the content handle the event, propagating it according to normal DOM rules.  nsCOMPtr<nsIPresShell> shell;  rv = aPresContext->GetShell(getter_AddRefs(shell));  if (NS_SUCCEEDED(rv) && shell) {    shell->HandleDOMEventWithTarget(mContent, &event, &status);   }}