1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ASH_INPUT_METHOD_EDITOR_CONSENT_ENUMS_H_
#define CHROME_BROWSER_ASH_INPUT_METHOD_EDITOR_CONSENT_ENUMS_H_
namespace ash::input_method {
enum class PromoCardAction {
// User explicitly hits 'Learn More' button to proceed to use the feature.
kAccept,
// User explicitly declines the promo card.
kDecline,
// User dismisses the promo card.
kDismiss,
};
enum class ConsentAction : int {
// User explicitly hits "Yes/Agree" button.
kApprove,
// User explicitly hits "No/Disagree" button.
kDecline
};
enum class EditorOpportunityMode {
kInvalidInput,
kRewrite,
kWrite,
kNotAllowedForUse,
};
// Defines the reason why the editor is blocked.
enum class EditorBlockedReason {
// Blocked because the consent status does not satisfy.
kBlockedByConsent,
// Blocked because the setting toggle is switched off.
kBlockedBySetting,
// Blocked because the text is too long.
kBlockedByTextLength,
// Blocked because the focused text input residing in a url found in the
// url denylist.
kBlockedByUrl,
// Blocked because the focused text input residing in an app found in the
// app denylist.
kBlockedByApp,
// Blocked because the current active input method is not supported.
kBlockedByInputMethod,
// Blocked because the current active input type is not allowed.
kBlockedByInputType,
// Blocked because the current app type is not supported.
kBlockedByAppType,
// Blocked because current form factor is not supported.
kBlockedByInvalidFormFactor,
// Blocked because user is not connected to internet.
kBlockedByNetworkStatus,
// Blocked because user is not in a supported country.
kBlockedByUnsupportedRegion,
// Blocked because user is using a managed device.
// kBlockedByManagedStatus_DEPRECATRD,
// Blocked because user does not have the capability (age, account type) to
// use the feature.
kBlockedByUnsupportedCapability,
// Blocked because the capability value has been been fetched and determined
// yet.
kBlockedByUnknownCapability,
// Blocked because there is a policy that disables the feature.
kBlockedByPolicy,
};
} // namespace ash::input_method
#endif // CHROME_BROWSER_ASH_INPUT_METHOD_EDITOR_CONSENT_ENUMS_H_
|