Search in sources :

Example 1 with FrozenNativePage

use of org.chromium.chrome.browser.FrozenNativePage in project AndroidChromium by JackyAndroid.

the class NativePageAssassin method freeze.

private void freeze(Tab tab) {
    if (tab == null)
        return;
    NativePage pageToFreeze = tab.getNativePage();
    if (pageToFreeze == null || pageToFreeze instanceof FrozenNativePage || pageToFreeze.getView().getParent() != null) {
        return;
    }
    tab.freezeNativePage();
}
Also used : FrozenNativePage(org.chromium.chrome.browser.FrozenNativePage) NativePage(org.chromium.chrome.browser.NativePage) FrozenNativePage(org.chromium.chrome.browser.FrozenNativePage)

Aggregations

FrozenNativePage (org.chromium.chrome.browser.FrozenNativePage)1 NativePage (org.chromium.chrome.browser.NativePage)1