Package com.cefrium

Class CefWindowAndroid

java.lang.Object
org.chromium.ui.base.WindowAndroid
org.chromium.ui.base.ActivityWindowAndroid
com.cefrium.CefWindowAndroid
All Implemented Interfaces:
android.view.View.OnAttachStateChangeListener, org.chromium.base.ApplicationStatus.ActivityStateListener, org.chromium.base.ApplicationStatus.WindowFocusChangedListener, org.chromium.base.lifetime.Destroyable, org.chromium.ui.display.DisplayAndroid.DisplayAndroidObserver, org.chromium.ui.permissions.AndroidPermissionDelegate

public class CefWindowAndroid extends org.chromium.ui.base.ActivityWindowAndroid
Cefrium's ActivityWindowAndroid, adding a ModalDialogManager.

The base WindowAndroid returns no production ModalDialogManager (Chrome supplies one from its Activity). Some Chromium features show tab-modal dialogs through it - notably the File System Access folder-permission prompt - and the native ModalDialogWrapper::ShowTabModal does a hard CHECK(dialog_manager), so without one the process crashes. We back it with CefModalDialogPresenter (a plain AlertDialog), registered for both TAB and APP dialog types.

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.chromium.ui.base.WindowAndroid

    org.chromium.ui.base.WindowAndroid.ActivityStateObserver, org.chromium.ui.base.WindowAndroid.IntentCallback, org.chromium.ui.base.WindowAndroid.ProgressBarConfig, org.chromium.ui.base.WindowAndroid.SelectionHandlesObserver
  • Field Summary

    Fields inherited from class org.chromium.ui.base.WindowAndroid

    START_INTENT_FAILURE
  • Constructor Summary

    Constructors
    Constructor
    Description
    CefWindowAndroid(android.content.Context context, boolean listenToActivityState, org.chromium.ui.base.IntentRequestTracker intentRequestTracker, org.chromium.ui.insets.InsetObserver insetObserver, boolean occlusionTrackingAllowed)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.chromium.ui.modaldialog.ModalDialogManager
     

    Methods inherited from class org.chromium.ui.base.ActivityWindowAndroid

    getActivity, getActivityState, getKeyboardDelegate, onActivityStateChange, onWindowFocusChanged

    Methods inherited from class org.chromium.ui.base.WindowAndroid

    addActivityStateObserver, addSelectionHandlesObserver, cancelIntent, canRequestPermission, canResolveActivity, getApplicationBottomInsetTracker, getApplicationContext, getBoundsInScreenCoordinates, getContext, getDestroyStack, getDisplay, getInsetObserver, getIntentRequestTracker, getOcclusionSupplier, getReadbackView, getUnownedUserDataHost, getWindow, getWindowToken, handlePermissionResult, hasPermission, haveAnimationsEnded, isActivityTopResumedSupported, isDestroyed, isOcclusionTrackingAllowed, isPermissionRevokedByPolicy, isTopResumedActivity, onActivityDestroyed, onActivityPaused, onActivityResumed, onActivityStarted, onActivityStopped, onActivityTopResumedChanged, onAdaptiveRefreshRateInfoChanged, onCurrentModeChanged, onDisplayModesChanged, onRefreshRateChanged, onViewAttachedToWindow, onViewDetachedFromWindow, onVisibilityChanged, onWindowFocusChanged, releasePointerLock, removeActivityStateObserver, removeIntentCallback, removeSelectionHandlesObserver, requestPermissions, requestPointerLock, resetPeriodicMetricsForTesting, sendBroadcast, setAndroidPermissionDelegate, setAnimationPlaceholderView, setIsOcclusionTracked, setKeyboardDelegate, setOccluded, setProgressBarConfigProvider, setUnfoldLatencyBeginTime, setWideColorEnabled, shouldShowRequestPermissionRationale, showCancelableIntent, showCancelableIntent, showCancelableIntent, showError, showError, showIntent, showIntent, startAnimationOverContent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.chromium.ui.display.DisplayAndroid.DisplayAndroidObserver

    onDIPScaleChanged, onRotationChanged
  • Constructor Details

    • CefWindowAndroid

      public CefWindowAndroid(android.content.Context context, boolean listenToActivityState, org.chromium.ui.base.IntentRequestTracker intentRequestTracker, org.chromium.ui.insets.InsetObserver insetObserver, boolean occlusionTrackingAllowed)
  • Method Details

    • getModalDialogManager

      public org.chromium.ui.modaldialog.ModalDialogManager getModalDialogManager()
      Overrides:
      getModalDialogManager in class org.chromium.ui.base.WindowAndroid
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.chromium.base.lifetime.Destroyable
      Overrides:
      destroy in class org.chromium.ui.base.WindowAndroid