Пример #1
0
void ChromeClientBlackBerry::closePagePopup(PagePopup* popup)
{
    if (!popup)
        return;

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

    PagePopupBlackBerry* webPopup = m_webPagePrivate->m_webPage->popup();
    webPopup->closePopup();
    delete webPopup;
}
Пример #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;
}
Пример #4
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;
}