mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 21:18:35 +00:00
Bug 158126 - PPEmbed does not send activate events to Gecko. r=pink/sr=sfraser/a=asa.
This commit is contained in:
parent
33bab80379
commit
5414555051
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user