- Fix compile errors.
- Add support for creating hidden windows and TEST_REDIRECT_POPUP_URLS.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@201 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-03-08 03:54:50 +00:00
parent 7b1166b18a
commit 11b831119a
11 changed files with 107 additions and 64 deletions

View File

@ -651,6 +651,27 @@ INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
// ClientHandler implementation
CefHandler::RetVal ClientHandler::HandleBeforeCreated(
CefRefPtr<CefBrowser> parentBrowser, CefWindowInfo& createInfo, bool popup,
const CefPopupFeatures& popupFeatures, CefRefPtr<CefHandler>& handler,
CefString& url, CefBrowserSettings& settings)
{
REQUIRE_UI_THREAD();
#ifdef TEST_REDIRECT_POPUP_URLS
if(popup) {
std::string urlStr = url;
if(urlStr.find("resources/inspector/devtools.html") == std::string::npos) {
// Show all popup windows excluding DevTools in the current window.
createInfo.m_dwStyle &= ~WS_VISIBLE;
handler = new ClientPopupHandler(m_Browser);
}
}
#endif // TEST_REDIRECT_POPUP_URLS
return RV_CONTINUE;
}
CefHandler::RetVal ClientHandler::HandleAddressChange(
CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame,
const CefString& url)