Bug 158126 - PPEmbed does not send activate events to Gecko. r=pink/sr=sfraser/a=asa.

This commit is contained in:
ccarlen%netscape.com 2002-07-26 14:36:22 +00:00
parent 33bab80379
commit 5414555051
2 changed files with 21 additions and 0 deletions

View File

@ -429,6 +429,24 @@ void CBrowserShell::MoveBy(SInt32 inHorizDelta,
}
void CBrowserShell::ActivateSelf()
{
EventRecord osEvent;
osEvent.what = activateEvt;
osEvent.modifiers = activeFlag;
PRBool handled = PR_FALSE;
mEventSink->DispatchEvent(&osEvent, &handled);
}
void CBrowserShell::DeactivateSelf()
{
EventRecord osEvent;
osEvent.what = activateEvt;
osEvent.modifiers = 0;
PRBool handled = PR_FALSE;
mEventSink->DispatchEvent(&osEvent, &handled);
}
void CBrowserShell::ShowSelf()
{
mWebBrowserAsBaseWin->SetVisibility(PR_TRUE);

View File

@ -86,6 +86,9 @@ public:
virtual void MoveBy(SInt32 inHorizDelta,
SInt32 inVertDelta,
Boolean inRefresh);
virtual void ActivateSelf();
virtual void DeactivateSelf();
virtual void ShowSelf();
virtual void DrawSelf();
virtual void ClickSelf(const SMouseDownEvent &inMouseDown);