From 0419b5103610217451b60711b0b10084a354e3cc Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Thu, 7 Apr 2011 18:51:22 +0000 Subject: [PATCH] Make modal popup windows behave the same as non-modal popup windows (issue #216). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@216 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- libcef/browser_webview_delegate_win.cc | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/libcef/browser_webview_delegate_win.cc b/libcef/browser_webview_delegate_win.cc index ec54cfc71..4fa001873 100644 --- a/libcef/browser_webview_delegate_win.cc +++ b/libcef/browser_webview_delegate_win.cc @@ -161,27 +161,10 @@ void BrowserWebViewDelegate::runModal() { show(WebKit::WebNavigationPolicyNewWindow); - CefContext::BrowserList *list; - CefContext::BrowserList::const_iterator i; - - _Context->Lock(); - list = _Context->GetBrowserList(); - i = list->begin(); - for (; i != list->end(); ++i) { - if (i->get()->IsPopup()) - EnableWindow(i->get()->UIT_GetMainWndHandle(), FALSE); - } - _Context->Unlock(); - browser_->UIT_SetIsModal(true); - MessageLoop::current()->Run(); - _Context->Lock(); - list = _Context->GetBrowserList(); - i = list->begin(); - for (; i != list->end(); ++i) - EnableWindow(i->get()->UIT_GetMainWndHandle(), TRUE); - _Context->Unlock(); + // TODO(CEF): Add a handler notification for modal windows so the client can + // make the window behave modally. } // WebPluginPageDelegate ------------------------------------------------------