- Add support for popup windows.
- Fix select list bugs.
- Add additional tests to cefclient.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@182 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-02-02 02:25:32 +00:00
parent 5911e7027c
commit 02bd128046
8 changed files with 147 additions and 39 deletions

View File

@ -782,6 +782,17 @@ CefRefPtr<CefBrowserImpl> CefBrowserImpl::UIT_CreatePopupWindow(
#if defined(OS_WIN)
info.SetAsPopup(NULL, CefString());
#endif
// Default to the size from the popup features.
if(features.xSet)
info.m_x = features.x;
if(features.ySet)
info.m_y = features.y;
if(features.widthSet)
info.m_nWidth = features.width;
if(features.heightSet)
info.m_nHeight = features.height;
CefRefPtr<CefHandler> handler = handler_;
CefString newUrl = url;
@ -820,7 +831,10 @@ void CefBrowserImpl::UIT_ClosePopupWidget()
{
REQUIRE_UIT();
#if !defined(OS_MACOSX)
// Mac uses a WebPopupMenu for select lists so no closing is necessary.
UIT_CloseView(UIT_GetPopupWndHandle());
#endif
popuphost_ = NULL;
}