Java Code Examples for org.chromium.chrome.browser.infobar.InfoBarContainer#setIsAllowedToAutoHide()

The following examples show how to use org.chromium.chrome.browser.infobar.InfoBarContainer#setIsAllowedToAutoHide() . 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: ChromeActivity.java    From delion with Apache License 2.0 3 votes vote down vote up
/**
 * Called when the accessibility status of this device changes.  This might be triggered by
 * touch exploration or general accessibility status updates.  It is an aggregate of two other
 * accessibility update methods.
 * @see #onAccessibilityModeChanged(boolean)
 * @see #onTouchExplorationStateChanged(boolean)
 * @param enabled Whether or not accessibility and touch exploration are currently enabled.
 */
protected void onAccessibilityModeChanged(boolean enabled) {
    InfoBarContainer.setIsAllowedToAutoHide(!enabled);
    if (mToolbarManager != null) mToolbarManager.onAccessibilityStatusChanged(enabled);
    if (mContextualSearchManager != null) {
        mContextualSearchManager.onAccessibilityModeChanged(enabled);
    }
}
 
Example 2
Source File: ChromeActivity.java    From AndroidChromium with Apache License 2.0 3 votes vote down vote up
/**
 * Called when the accessibility status of this device changes.  This might be triggered by
 * touch exploration or general accessibility status updates.  It is an aggregate of two other
 * accessibility update methods.
 * @see #onAccessibilityModeChanged(boolean)
 * @see #onTouchExplorationStateChanged(boolean)
 * @param enabled Whether or not accessibility and touch exploration are currently enabled.
 */
protected void onAccessibilityModeChanged(boolean enabled) {
    InfoBarContainer.setIsAllowedToAutoHide(!enabled);
    if (mToolbarManager != null) mToolbarManager.onAccessibilityStatusChanged(enabled);
    if (mContextualSearchManager != null) {
        mContextualSearchManager.onAccessibilityModeChanged(enabled);
    }
}
 
Example 3
Source File: ChromeActivity.java    From 365browser with Apache License 2.0 3 votes vote down vote up
/**
 * Called when the accessibility status of this device changes.  This might be triggered by
 * touch exploration or general accessibility status updates.  It is an aggregate of two other
 * accessibility update methods.
 * @see #onAccessibilityModeChanged(boolean)
 * @see #onTouchExplorationStateChanged(boolean)
 * @param enabled Whether or not accessibility and touch exploration are currently enabled.
 */
protected void onAccessibilityModeChanged(boolean enabled) {
    InfoBarContainer.setIsAllowedToAutoHide(!enabled);
    if (mToolbarManager != null) mToolbarManager.onAccessibilityStatusChanged(enabled);
    if (mContextualSearchManager != null) {
        mContextualSearchManager.onAccessibilityModeChanged(enabled);
    }
}