void ChromeClientBlackBerry::closePagePopup(PagePopup* popup) { if (!popup) return; PagePopupBlackBerry* webPopup = m_webPagePrivate->m_webPage->popup(); webPopup->closePopup(); m_webPagePrivate->m_webPage->popupClosed(); }
void ChromeClientBlackBerry::closePagePopup(PagePopup*) { if (!hasOpenedPopup()) return; PagePopupBlackBerry* webPopup = m_webPagePrivate->m_webPage->popup(); webPopup->closePopup(); delete webPopup; }