Java Code Examples for org.chromium.content.browser.ContentView#onHide()

The following examples show how to use org.chromium.content.browser.ContentView#onHide() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ChromiumTestShellActivity.java    From android-chromium with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
protected void onStop() {
    super.onStop();

    ContentView view = getActiveContentView();
    if (view != null) view.onHide();
}
 
Example 2
Source File: ShellManager.java    From android-chromium with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@SuppressWarnings("unused")
@CalledByNative
private void closeShell(Shell shellView) {
    if (shellView == mActiveShell) mActiveShell = null;
    ContentView contentView = shellView.getContentView();
    if (contentView != null) contentView.onHide();
    shellView.setContentViewRenderView(null);
    shellView.setWindow(null);
    removeView(shellView);
}
 
Example 3
Source File: ContentShellActivity.java    From android-chromium with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
protected void onStop() {
    super.onStop();

    ContentView view = getActiveContentView();
    if (view != null) view.onHide();
}
 
Example 4
Source File: ChromiumTestShellActivity.java    From android-chromium with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
protected void onStop() {
    super.onStop();

    ContentView view = getActiveContentView();
    if (view != null) view.onHide();
}
 
Example 5
Source File: ShellManager.java    From android-chromium with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@SuppressWarnings("unused")
@CalledByNative
private void closeShell(Shell shellView) {
    if (shellView == mActiveShell) mActiveShell = null;
    ContentView contentView = shellView.getContentView();
    if (contentView != null) contentView.onHide();
    shellView.setContentViewRenderView(null);
    shellView.setWindow(null);
    removeView(shellView);
}
 
Example 6
Source File: ContentShellActivity.java    From android-chromium with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
protected void onStop() {
    super.onStop();

    ContentView view = getActiveContentView();
    if (view != null) view.onHide();
}