Bug 953146 part.6 Clean up WM_MOUSEACTIVE case in nsWindow::ProcessMessage() r=jimm

This commit is contained in:
Masayuki Nakano
2013-12-31 09:41:37 +09:00
parent 53397db0d4
commit 537f620a00
2 changed files with 23 additions and 11 deletions

View File

@@ -337,6 +337,20 @@ protected:
return mTransparencyMode == eTransparencyGlass ||
mTransparencyMode == eTransparencyBorderlessGlass;
}
HWND GetOwnerWnd() const
{
return ::GetWindow(mWnd, GW_OWNER);
}
bool IsOwnerForegroundWindow() const
{
HWND owner = GetOwnerWnd();
return owner && owner == ::GetForegroundWindow();
}
bool IsPopup() const
{
return mWindowType == eWindowType_popup;
}
/**
* Event processing helpers