sadtab_metrics_types.h 1.0 KB

12345678910111213141516171819202122232425262728
  1. // Copyright 2017 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_UI_METRICS_SADTAB_METRICS_TYPES_H_
  5. #define COMPONENTS_UI_METRICS_SADTAB_METRICS_TYPES_H_
  6. namespace ui_metrics {
  7. // An enum for reporting interaction events to a UMA histogram.
  8. // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.ui_metrics
  9. enum class SadTabEvent {
  10. // Records that the Sad Tab was displayed.
  11. DISPLAYED = 0,
  12. // Records that the main Sad Tab button was triggered.
  13. BUTTON_CLICKED = 1,
  14. // Records that the Sad Tab help link was triggered.
  15. HELP_LINK_CLICKED = 2,
  16. // Enum end marker.
  17. MAX_SAD_TAB_EVENT = 3,
  18. };
  19. // Describes the mode of the Sad Tab as being in 'reload' mode.
  20. const char kSadTabReloadHistogramKey[] = "Tabs.SadTab.Reload.Event";
  21. // Describes the mode of the Sad Tab as being in 'feedback' mode.
  22. const char kSadTabFeedbackHistogramKey[] = "Tabs.SadTab.Feedback.Event";
  23. }
  24. #endif // COMPONENTS_UI_METRICS_SADTAB_METRICS_TYPES_H_