accuracy_tip_interaction.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_ACCURACY_TIPS_ACCURACY_TIP_INTERACTION_H_
  5. #define COMPONENTS_ACCURACY_TIPS_ACCURACY_TIP_INTERACTION_H_
  6. namespace accuracy_tips {
  7. // Represents the different user interactions with a AccuracyTip dialog.
  8. // These values are persisted to logs. Entries should not be renumbered and
  9. // numeric values should never be reused.
  10. enum class AccuracyTipInteraction {
  11. // The UI was closed without interaction. E.g. because the tab navigated
  12. // to a different site.
  13. kNoAction = 0,
  14. // Learn more button pressed.
  15. kLearnMore = 1,
  16. // Opt out button pressed.
  17. kOptOut = 2,
  18. // Pressed ESC or close button.
  19. kClosed = 3,
  20. // Logged when the UI was not actually shown due to experiment
  21. // configuration.
  22. kDisabledByExperiment = 4,
  23. // Pressed "ignore" button.
  24. kIgnore = 5,
  25. // The UI was closed because the site requested a permission.
  26. kPermissionRequested = 6,
  27. kMaxValue = kPermissionRequested,
  28. };
  29. } // namespace accuracy_tips
  30. #endif // COMPONENTS_ACCURACY_TIPS_ACCURACY_TIP_INTERACTION_H_