diff options
Diffstat (limited to 'chromium/ash/public/mojom/voice_interaction_controller.mojom')
-rw-r--r-- | chromium/ash/public/mojom/voice_interaction_controller.mojom | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/chromium/ash/public/mojom/voice_interaction_controller.mojom b/chromium/ash/public/mojom/voice_interaction_controller.mojom index 8f19c8ebf85..64b3fc49889 100644 --- a/chromium/ash/public/mojom/voice_interaction_controller.mojom +++ b/chromium/ash/public/mojom/voice_interaction_controller.mojom @@ -21,63 +21,3 @@ enum VoiceInteractionState { // Voice interaction session is currently running. RUNNING }; - -enum AssistantAllowedState { - // Assistant feature is allowed. - ALLOWED = 0, - // Disallowed because search and assistant is disabled by policy. - DISALLOWED_BY_POLICY, - // Disallowed because user's locale is not compatible. - DISALLOWED_BY_LOCALE, - // Disallowed because current user is not primary user. - DISALLOWED_BY_NONPRIMARY_USER, - // Disallowed because current user is supervised user. - DISALLOWED_BY_SUPERVISED_USER, - // Disallowed because incognito mode. - DISALLOWED_BY_INCOGNITO, - // Disallowed because the device is in demo mode. - DISALLOWED_BY_DEMO_MODE, - // Disallowed because the device is in public session. - DISALLOWED_BY_PUBLIC_SESSION, - // Disallowed because the user's account type is currently not supported. - DISALLOWED_BY_ACCOUNT_TYPE, - // Disallowed because the device is in Kiosk mode. - DISALLOWED_BY_KIOSK_MODE -}; - -// Allows observing changes to voice interaction status and settings. -interface VoiceInteractionObserver { - // Called when voice interaction session state changes. - OnVoiceInteractionStatusChanged(VoiceInteractionState state); - - // Called when voice interaction is enabled/disabled in settings. - OnVoiceInteractionSettingsEnabled(bool enabled); - - // Called when voice interaction service is allowed/disallowed to access - // the "context" (text and graphic content that is currently on screen). - OnVoiceInteractionContextEnabled(bool enabled); - - // Called when hotword listening is enabled/disabled. - OnVoiceInteractionHotwordEnabled(bool enabled); - - // Called when assistant feature allowed state has changed. - OnAssistantFeatureAllowedChanged(AssistantAllowedState state); - - // Called when Google Play Store is enabled/disabled. - OnArcPlayStoreEnabledChanged(bool enabled); - - // Called when locale is changed in pref. The locale is in the format can be - // "en-US" or simply "en". When locale is not set in pref, it returns empty - // string. - OnLocaleChanged(string locale); - - // Called when locked full screen state has changed. - OnLockedFullScreenStateChanged(bool enabled); -}; - -// Interface for ash client (Chrome) to connect to the voice interaction -// controller, which notifies changes of voice interaction related flags. -interface VoiceInteractionController { - // Add an observer. - AddObserver(VoiceInteractionObserver observer); -}; |