Java Code Examples for org.chromium.chrome.browser.util.FeatureUtilities#setIsInMultiWindowMode()
The following examples show how to use
org.chromium.chrome.browser.util.FeatureUtilities#setIsInMultiWindowMode() .
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 | 6 votes |
/** * Called by the system when the activity changes from fullscreen mode to multi-window mode * and visa-versa. * @param isInMultiWindowMode True if the activity is in multi-window mode. */ public void onMultiWindowModeChanged(boolean isInMultiWindowMode) { recordMultiWindowModeChangedUserAction(isInMultiWindowMode); if (!isInMultiWindowMode && ApplicationStatus.getStateForActivity(this) == ActivityState.RESUMED) { // Start a new UMA session when exiting multi-window mode if the activity is currently // resumed. When entering multi-window Android recents gains focus, so ChromeActivity // will get a call to onPauseWithNative(), ending the current UMA session. When exiting // multi-window, however, if ChromeActivity is resumed it stays in that state. markSessionEnd(); markSessionResume(); FeatureUtilities.setIsInMultiWindowMode( MultiWindowUtils.getInstance().isInMultiWindowMode(this)); } }
Example 2
Source File: ChromeActivity.java From AndroidChromium with Apache License 2.0 | 6 votes |
/** * Called by the system when the activity changes from fullscreen mode to multi-window mode * and visa-versa. * @param isInMultiWindowMode True if the activity is in multi-window mode. */ public void onMultiWindowModeChanged(boolean isInMultiWindowMode) { recordMultiWindowModeChangedUserAction(isInMultiWindowMode); if (!isInMultiWindowMode && ApplicationStatus.getStateForActivity(this) == ActivityState.RESUMED) { // Start a new UMA session when exiting multi-window mode if the activity is currently // resumed. When entering multi-window Android recents gains focus, so ChromeActivity // will get a call to onPauseWithNative(), ending the current UMA session. When exiting // multi-window, however, if ChromeActivity is resumed it stays in that state. markSessionEnd(); markSessionResume(); FeatureUtilities.setIsInMultiWindowMode( MultiWindowUtils.getInstance().isInMultiWindowMode(this)); } super.onMultiWindowModeChanged(isInMultiWindowMode); }
Example 3
Source File: ChromeActivity.java From 365browser with Apache License 2.0 | 6 votes |
@Override public void onResumeWithNative() { super.onResumeWithNative(); markSessionResume(); RecordUserAction.record("MobileComeToForeground"); if (getActivityTab() != null) { LaunchMetrics.commitLaunchMetrics(getActivityTab().getWebContents()); } ContentViewCore cvc = getContentViewCore(); if (cvc != null) cvc.onResume(); FeatureUtilities.setCustomTabVisible(isCustomTab()); FeatureUtilities.setIsInMultiWindowMode( MultiWindowUtils.getInstance().isInMultiWindowMode(this)); VideoPersister.getInstance().cleanup(this); VrShellDelegate.maybeRegisterVrEntryHook(this); }
Example 4
Source File: ChromeActivity.java From 365browser with Apache License 2.0 | 6 votes |
/** * Called by the system when the activity changes from fullscreen mode to multi-window mode * and visa-versa. * @param isInMultiWindowMode True if the activity is in multi-window mode. */ @Override public void onMultiWindowModeChanged(boolean isInMultiWindowMode) { recordMultiWindowModeChangedUserAction(isInMultiWindowMode); if (!isInMultiWindowMode && ApplicationStatus.getStateForActivity(this) == ActivityState.RESUMED) { // Start a new UMA session when exiting multi-window mode if the activity is currently // resumed. When entering multi-window Android recents gains focus, so ChromeActivity // will get a call to onPauseWithNative(), ending the current UMA session. When exiting // multi-window, however, if ChromeActivity is resumed it stays in that state. markSessionEnd(); markSessionResume(); FeatureUtilities.setIsInMultiWindowMode( MultiWindowUtils.getInstance().isInMultiWindowMode(this)); } super.onMultiWindowModeChanged(isInMultiWindowMode); }
Example 5
Source File: ChromeActivity.java From delion with Apache License 2.0 | 5 votes |
@Override public void onResumeWithNative() { super.onResumeWithNative(); markSessionResume(); RecordUserAction.record("MobileComeToForeground"); if (getActivityTab() != null) { LaunchMetrics.commitLaunchMetrics(getActivityTab().getWebContents()); } FeatureUtilities.setCustomTabVisible(isCustomTab()); FeatureUtilities.setIsInMultiWindowMode( MultiWindowUtils.getInstance().isInMultiWindowMode(this)); }
Example 6
Source File: ChromeActivity.java From AndroidChromium with Apache License 2.0 | 5 votes |
@Override public void onResumeWithNative() { super.onResumeWithNative(); markSessionResume(); RecordUserAction.record("MobileComeToForeground"); if (getActivityTab() != null) { LaunchMetrics.commitLaunchMetrics(getActivityTab().getWebContents()); } FeatureUtilities.setCustomTabVisible(isCustomTab()); FeatureUtilities.setIsInMultiWindowMode( MultiWindowUtils.getInstance().isInMultiWindowMode(this)); }