<!--
Copyright 2024 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<!--

This file describes the enumerations referenced by entries in histograms.xml for
this directory. Some enums may instead be listed in the central enums.xml file
at src/tools/metrics/histograms/enums.xml when multiple files use them.

For best practices on writing enumerations descriptions, see
https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md#Enum-Histograms

Please follow the instructions in the OWNERS file in this directory to find a
reviewer. If no OWNERS file exists, please consider signing up at
go/reviewing-metrics (Googlers only), as all subdirectories are expected to
have an OWNERS file. As a last resort you can send the CL to
chromium-metrics-reviews@google.com.
-->

<histogram-configuration>

<!-- Enum types -->

<enums>

<!-- LINT.IfChange(ToastAlertLevel) -->

<enum name="ToastAlertLevel">
  <int value="0" label="All"/>
  <int value="1" label="Actionable"/>
</enum>

<!-- LINT.ThenChange(//chrome/browser/ui/toasts/toast_metrics.h:ToastAlertLevel) -->

<!-- LINT.IfChange(ToastCloseReason) -->

<enum name="ToastCloseReason">
  <int value="0" label="Auto Dismissed"/>
  <int value="1" label="Action Button"/>
  <int value="2" label="Close Button"/>
  <int value="3" label="Prempted by another toast"/>
  <int value="4" label="Menu Item Clicked"/>
  <int value="5" label="Feature explicitly dismiss toast"/>
  <int value="6" label="Aborted"/>
</enum>

<!-- LINT.ThenChange(/chrome/browser/ui/toasts/toast_view.h:ToastCloseReason) -->

<!-- LINT.IfChange(ToastId) -->

<enum name="ToastId">
  <int value="0" label="Link Copied"/>
  <int value="1" label="Image Copied"/>
  <int value="2" label="Link to Highlight Copied"/>
  <int value="3" label="Added to Reading List"/>
  <int value="4" label="(Deprecated) Lens Overlay"/>
  <int value="5" label="Non-milestone Update"/>
  <int value="6" label="Added to comparison table"/>
  <int value="7" label="Clear Browsing Data"/>
  <int value="8"
      label="(Deprecated) Automatic plus address replacement during Autofill"/>
  <int value="9"
      label="ESB value was synced to 'turned on' - for non security settings
             page"/>
  <int value="10"
      label="ESB value was synced to 'turned on' - for security settings page"/>
  <int value="11" label="ESB value is synced to 'turned off'"/>
  <int value="12" label="Tab removed from collaboration"/>
  <int value="13" label="User joined collaboration"/>
  <int value="14" label="Collaboration removed"/>
  <int value="15" label="Video Frame Copied"/>
  <int value="16" label="Close pinned tab confirmation toast"/>
  <int value="17" label="Gemini will keep working on task"/>
  <int value="18" label="Dice user migrated"/>
  <int value="19" label="SharedGroups is now available after version update"/>
  <int value="20"
      label="Autofilled email got automatically verified by the browser"/>
  <int value="21" label="Sharing image with Gemini failed"/>
  <int value="22" label="Copied to clipboard"/>
  <int value="23" label="User migrated into enhanced security settings bundle"/>
  <int value="24" label="Saved Skill"/>
  <int value="25" label="Deleted Skill"/>
  <int value="26" label="Showed Autofill AI error message on fetch"/>
  <int value="27" label="Translate"/>
  <int value="28"
      label="Showed Autofill AI Wallet error message (update or migrate
             failed)"/>
  <int value="29" label="Showed Record / Replay progress"/>
  <int value="30" label="Auto Sign-in Toast"/>
  <int value="31" label="(Deprecated) Filter Suggestion"/>
  <int value="32" label="(Deprecated) Filter Suggestion Recent"/>
  <int value="33" label="Saved Skill without Invoke Button"/>
  <int value="34" label="Send Tab To Self tab opened immediately"/>
  <int value="35" label="Send Tab To Self tabs opened in background"/>
  <int value="36" label="Send Tab To Self successfully sent"/>
  <int value="37" label="Unsafe site report successfully sent"/>
  <int value="38" label="Send Tab To Self failed to send"/>
  <int value="39" label="Send Tab To Self successfully sent but throttled"/>
  <int value="40" label="Default browser update success"/>
  <int value="41" label="Send Tab To Self no internet connection"/>
  <int value="42" label="Indigo invocation error"/>
  <int value="43" label="Tab strip switch to horizontal delayed toast"/>
  <int value="44" label="Tab strip switch to vertical delayed toast"/>
  <int value="45" label="Showed Autofill AI prefetch error message"/>
  <int value="46" label="Enterprise copy audit monitored toast"/>
  <int value="47" label="Enterprise copy kept in managed chrome toast"/>
  <int value="48" label="Dictation error"/>
  <int value="49" label="Dictation stopped"/>
  <int value="50" label="Glic selection affordance hidden for site"/>
  <int value="51" label="Enterprise copy warning toast"/>
  <int value="52" label="Enterprise copy blocked toast"/>
  <int value="53" label="Indigo delete uploaded photo error"/>
  <int value="54" label="Indigo delete uploaded photo success"/>
  <int value="55" label="Showed AtMemory SPII fetch error message"/>
</enum>

<!-- LINT.ThenChange(/chrome/browser/ui/toasts/api/toast_id.h:ToastId) -->

</enums>

</histogram-configuration>
