| 567 | } |
| 568 | |
| 569 | bool Win32Window::isFocused() |
| 570 | { |
| 571 | |
| 572 | if (mOffscreenRender) |
| 573 | return true; |
| 574 | |
| 575 | // CodeReview This is enough to make the plugin and normal/editor scenarios |
| 576 | // coexist but it seems brittle. I think we need a better way to detect |
| 577 | // if we're the foreground window, maybe taking into account if any of our |
| 578 | // window's parents are foreground? [bjg 4/30/07] |
| 579 | if(mOwningManager->mParentWindow) |
| 580 | return (GetFocus() == mWindowHandle || IsChild(mWindowHandle, GetFocus())); |
| 581 | else |
| 582 | return ((GetFocus() == mWindowHandle || IsChild(mWindowHandle, GetFocus())) && GetForegroundWindow() == mWindowHandle); |
| 583 | } |
| 584 | |
| 585 | bool Win32Window::isMinimized() |
| 586 | { |
no outgoing calls
no test coverage detected