To clarify my example,
nsresult MozView::AddListener()
{
nsCOMPtr<nsIDOMEventTarget> target = do_QueryInterface(mPrivate-
>mDOMWindow);
nsresult rv = target-
>AddEventListener(NS_ConvertUTF8toUTF16("onclick"), mPrivate-
>mDOMEventListener,PR_FALSE);
if (NS_FAILED(rv)){
cerr << "Failed to add my listener." << endl;
}
return rv;
}
mozView->LoadURI("http://google.com");
mozView->AddListener();
then click buttons and no event is recieved in the c++ host
Carey
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding