mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Respect the WS_VISIBLE flag when creating browser windows (issue #201).
- Add a CefBrowser::CloseBrowser() method. - Add a TEST_REDIRECT_POPUP_URLS test to cefclient. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@200 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -55,10 +55,13 @@ WebWidget* BrowserWebViewDelegate::createPopupMenu(
|
||||
|
||||
void BrowserWebViewDelegate::show(WebNavigationPolicy) {
|
||||
if (this == browser_->UIT_GetWebViewDelegate()) {
|
||||
// Restore the window and bring it to the top.
|
||||
// Restore the window and bring it to the top if the window is currently
|
||||
// visible.
|
||||
HWND root = GetAncestor(browser_->UIT_GetMainWndHandle(), GA_ROOT);
|
||||
ShowWindow(root, SW_SHOWNORMAL);
|
||||
SetWindowPos(root, HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
|
||||
if(IsWindowVisible(root)) {
|
||||
ShowWindow(root, SW_SHOWNORMAL);
|
||||
SetWindowPos(root, HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
|
||||
}
|
||||
} else if (this == browser_->UIT_GetPopupDelegate()) {
|
||||
// Show popup widgets without activation.
|
||||
ShowWindow(browser_->UIT_GetPopupWndHandle(), SW_SHOWNA);
|
||||
|
Reference in New Issue
Block a user