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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
|
// Copyright 2019 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_KEYBOARD_ACCESSORY_ANDROID_ACCESSORY_SHEET_ENUMS_H_
#define CHROME_BROWSER_KEYBOARD_ACCESSORY_ANDROID_ACCESSORY_SHEET_ENUMS_H_
namespace autofill {
// Describes the different types of accessory sheets.
// Used to record metrics specific to a tab types (e.g. passwords, payments).
// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused. Must be kept in sync with the suffix
// AccessorySheetType in histogram.xml. A java IntDef@ is generated from this.
// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.keyboard_accessory
enum class AccessoryTabType {
ALL = 0,
PASSWORDS = 1,
CREDIT_CARDS = 2,
ADDRESSES = 3,
OBSOLETE_TOUCH_TO_FILL = 4,
COUNT,
};
// Used to record which type of suggestion was selected.
// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused. Must be kept in sync with the enum
// in enums.xml. A java IntDef@ is generated from this.
// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.keyboard_accessory
enum class AccessorySuggestionType {
// Address manual filling sheet suggestion types:
kNameFull = 0,
kCompanyName = 1,
kAddressLine1 = 2,
kAddressLine2 = 3,
kZip = 4,
kCity = 5,
kState = 6,
kCountry = 7,
kPhoneNumber = 8,
kEmailAddress = 9,
// Payments manual filling sheet suggestion types:
kCreditCardNumber = 10,
kCreditCardExpirationMonth = 11,
kCreditCardExpirationYear = 12,
kCreditCardNameFull = 13,
kCreditCardCvc = 14,
kIban = 15,
kPromoCode = 16,
// Password manual filling sheet suggestion types:
kCredentialUsername = 17,
kCredentialPassword = 18,
kPasskey = 19,
// Plus address suggestion types are accessible from both address and
// passwords manual filling sheets.
kPlusAddress = 20,
// Google Wallet loyalty card suggestion accessing from the payments manual
// filling sheet.
kLoyaltyCard = 21,
kMaxValue = kLoyaltyCard,
};
// Describes possible actions in the keyboard accessory and its sheets. Used to
// distinguish specific actions and links.
// Additionally, they are used to record metrics for the associated action.
// Therefore, entries should not be renumbered and numeric values should never
// be reused. Must be kept in sync with the enum in enums.xml. A java IntDef@ is
// generated from this.
// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.keyboard_accessory
//
// LINT.IfChange(AccessoryAction)
enum class AccessoryAction {
GENERATE_PASSWORD_AUTOMATIC = 0,
MANAGE_PASSWORDS = 1,
AUTOFILL_SUGGESTION = 2,
MANAGE_CREDIT_CARDS = 3,
MANAGE_ADDRESSES = 4,
GENERATE_PASSWORD_MANUAL = 5,
TOGGLE_SAVE_PASSWORDS = 6,
USE_OTHER_PASSWORD = 7,
CREDMAN_CONDITIONAL_UI_REENTRY = 8,
CROSS_DEVICE_PASSKEY = 9,
CREATE_PLUS_ADDRESS_FROM_ADDRESS_SHEET = 10,
SELECT_PLUS_ADDRESS_FROM_ADDRESS_SHEET = 11,
MANAGE_PLUS_ADDRESS_FROM_ADDRESS_SHEET = 12,
CREATE_PLUS_ADDRESS_FROM_PASSWORD_SHEET = 13,
SELECT_PLUS_ADDRESS_FROM_PASSWORD_SHEET = 14,
MANAGE_PLUS_ADDRESS_FROM_PASSWORD_SHEET = 15,
MANAGE_LOYALTY_CARDS = 16,
RETRIEVE_TRUSTED_VAULT_KEY = 17,
COUNT,
};
// LINT.ThenChange(/tools/metrics/histograms/metadata/password/enums.xml)
// Used to record metrics for accessory toggles. Entries should not be
// renumbered and numeric values should never be reused. Must be kept in sync
// with the enum in enums.xml. A java IntDef@ is generated from this.
// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.keyboard_accessory
enum class AccessoryToggleType {
SAVE_PASSWORDS_TOGGLE_ON = 0,
SAVE_PASSWORDS_TOGGLE_OFF = 1,
COUNT,
};
} // namespace autofill
#endif // CHROME_BROWSER_KEYBOARD_ACCESSORY_ANDROID_ACCESSORY_SHEET_ENUMS_H_
|