void ChromeClientBlackBerry::closePagePopup(PagePopup* popup)
{
    if (!popup)
        return;

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

    PagePopupBlackBerry* webPopup = m_webPagePrivate->m_webPage->popup();
    webPopup->closePopup();
    delete webPopup;
}
Beispiel #3
0
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;
}