PagePopup* ChromeClientBlackBerry::openPagePopup(PagePopupClient* client, const IntRect& originBoundsInRootView) { closePagePopup(0); PagePopupBlackBerry* webPopup = new PagePopupBlackBerry(m_webPagePrivate, client, rootViewToScreen(originBoundsInRootView)); m_webPagePrivate->m_webPage->popupOpened(webPopup); if (webPopup->sendCreatePopupWebViewRequest()) return webPopup; closePagePopup(0); return 0; }
PagePopup* ChromeClientBlackBerry::openPagePopup(PagePopupClient* client, const IntRect& originBoundsInRootView) { PagePopupBlackBerry* webPopup; if (!hasOpenedPopup()) { webPopup = new PagePopupBlackBerry(m_webPagePrivate, client, rootViewToScreen(originBoundsInRootView)); m_webPagePrivate->m_webPage->popupOpened(webPopup); } else { webPopup = m_webPagePrivate->m_webPage->popup(); webPopup->closeWebPage(); } webPopup->sendCreatePopupWebViewRequest(); return webPopup; }