Christian Xu | 6e10087e | 2024-10-09 16:41:58 | [diff] [blame] | 1 | // Copyright 2024 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef COMPONENTS_LENS_LENS_OVERLAY_NEW_TAB_SOURCE_H_ |
| 6 | #define COMPONENTS_LENS_LENS_OVERLAY_NEW_TAB_SOURCE_H_ |
| 7 | |
| 8 | namespace lens { |
| 9 | |
| 10 | // Designates the source that opened the new tab in the lens overlay. |
| 11 | // |
| 12 | // These values are persisted to logs. Entries should not be renumbered and |
| 13 | // numeric values should never be reused. |
| 14 | // |
| 15 | // LINT.IfChange(LensOverlayNewTabSource) |
| 16 | enum class LensOverlayNewTabSource { |
| 17 | // New tab opened from ... |
| 18 | |
| 19 | // ... navigation to a non-google URL. |
| 20 | kWebNavigation, |
| 21 | // ... a unimodal (text-only) omnibox navigation. |
| 22 | kOmnibox, |
| 23 | // ... the web context menu. |
| 24 | kContextMenu, |
| 25 | kMaxValue = kContextMenu |
| 26 | }; |
| 27 | // LINT.ThenChange(/tools/metrics/histograms/metadata/lens/enums.xml:LensOverlayNewTabSource) |
| 28 | |
| 29 | } // namespace lens |
| 30 | |
| 31 | #endif // COMPONENTS_LENS_LENS_OVERLAY_NEW_TAB_SOURCE_H_ |