    bridge.addEventListener(constants.Events.inputSwitchIndicatorChange, this._onInputSwitchIndicatorChange.bind(this));
        }

        _onInputSwitchIndicatorChange() {
            bridge.invoke("CloudExperienceHost.shouldShowInputSwitchButton").done((result) => {
                this.showInputSwitchButton(result);
            });
        }

        _resetKeyboardFocus() {
            document.activeElement.blur();
        }

        updateMicButtonTextAndState() {
            if (!this.showMicArea() && (this.speechControllerState == CloudExperienceHostAPI.Speech.SpeechControllerState.disabled)) {
                // Microphone area is hidden & speech is still disabled - nothing to do
                return;
            }

            let text = null;
            let stateString = null;
            switch (this.speechControllerState) {
                case CloudExperienceHostAPI.Speech.SpeechControllerState.disabled:
                    // No text
                    stateString = "disabled";
                    break;
                case CloudExperienceHostAPI.Speech.SpeechControllerState.enabled:
                case CloudExperienceHostAPI.Speech.SpeechControllerState.idling:
                case CloudExperienceHostAPI.Speech.SpeechControllerState.speaking_Stop:
                    // No text
                    stateString = "idling";
                    break;
                case CloudExperienceHostAPI.Speech.SpeechControllerState.speaking_Start:
                    text = this.speechControllerCaption;
                    stateString = "speaking";
                    break;
                case CloudExperienceHostAPI.Speech.SpeechControllerState.listening_Start:
                    text = window.resourceStrings.MicStatusListening;
                    stateString = "listening";
                    break;
                case CloudExperienceHostAPI.Speech.SpeechControllerState.listening_Stop:
                    text = this.speechControllerCaption;
                    // this.speechControllerCaption is set to null in onMicStateChanged if nothing was recognized
                    // Treat that case as the 'idling' state
                    stateString = text ? "recognized" : "idling";
                    break;
            }
            this.micText(text);
            this.micState(stateString);
            this.micButtonEnabled(this.speechControllerState != CloudExperienceHostAPI.Speech.SpeechControllerState.disabled);

            // Show the microphone area if it was previously hidden
            this.showMicArea(true);
        }

        onMicButton(data, event) {
            if (event.target) {
                OOBEChromeFooterViewModel.logChromeEvent("MicButtonEnabled", this.micButtonEnabled());
                this.micDisabledExplicitly = false;
                bridge.invoke("CloudExperienceHost.Cortana.isCortanaSupported").done((isCortanaSupported) => {
                    let newValue = !this.micButtonEnabled() && isCortanaSupported;
       