Search in sources :

Example 1 with LayoutManager

use of org.chromium.chrome.browser.compositor.layouts.LayoutManager in project AndroidChromium by JackyAndroid.

the class ChromeActivity method onBackPressed.

@Override
public final void onBackPressed() {
    RecordUserAction.record("SystemBack");
    if (mCompositorViewHolder != null) {
        LayoutManager layoutManager = mCompositorViewHolder.getLayoutManager();
        if (layoutManager != null && layoutManager.onBackPressed())
            return;
    }
    ContentViewCore contentViewCore = getContentViewCore();
    if (contentViewCore != null && contentViewCore.isSelectActionBarShowing()) {
        contentViewCore.clearSelection();
        return;
    }
    if (mContextualSearchManager != null && mContextualSearchManager.onBackPressed())
        return;
    if (handleBackPressed())
        return;
    super.onBackPressed();
}
Also used : LayoutManager(org.chromium.chrome.browser.compositor.layouts.LayoutManager) ContentViewCore(org.chromium.content.browser.ContentViewCore)

Aggregations

LayoutManager (org.chromium.chrome.browser.compositor.layouts.LayoutManager)1 ContentViewCore (org.chromium.content.browser.ContentViewCore)1