bug 457303: make nsXULPopupListener::FireFocusOnTargetContent windows-only r=Enn

This commit is contained in:
Taras Glek 2008-09-29 16:44:28 -07:00
parent 54bbd7aa51
commit 86d427158c
2 changed files with 4 additions and 0 deletions

View File

@ -247,6 +247,7 @@ nsXULPopupListener::PreLaunchPopup(nsIDOMEvent* aMouseEvent)
return NS_OK;
}
#ifndef NS_CONTEXT_MENU_IS_MOUSEUP
nsresult
nsXULPopupListener::FireFocusOnTargetContent(nsIDOMNode* aTargetNode)
{
@ -309,6 +310,7 @@ nsXULPopupListener::FireFocusOnTargetContent(nsIDOMNode* aTargetNode)
}
return rv;
}
#endif
// ClosePopup
//

View File

@ -102,8 +102,10 @@ private:
// target.
nsresult PreLaunchPopup(nsIDOMEvent* aMouseEvent);
#ifndef NS_CONTEXT_MENU_IS_MOUSEUP
// When a context menu is opened, focus the target of the contextmenu event.
nsresult FireFocusOnTargetContent(nsIDOMNode* aTargetNode);
#endif
// |mElement| is the node to which this listener is attached.
nsCOMPtr<nsIDOMElement> mElement;