Implements ShadowUiModeManager