| // Copyright 2023 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef IOS_CHROME_BROWSER_UI_NTP_METRICS_HOME_METRICS_H_ |
| #define IOS_CHROME_BROWSER_UI_NTP_METRICS_HOME_METRICS_H_ |
| |
| // These values are persisted to IOS.Start/NTP.Click histograms. |
| // Entries should not be renumbered and numeric values should never be reused. |
| enum class IOSHomeActionType { |
| kMostVisitedTile = 0, |
| kShortcuts = 1, |
| kReturnToRecentTab = 2, |
| kFeedCard = 3, |
| kFakebox = 4, |
| kSetUpList = 5, |
| kOmnibox = 6, |
| kMaxValue = kOmnibox, |
| }; |
| |
| // Logs a Home action and attributes it to the NTP or Start surface. |
| void RecordHomeAction(IOSHomeActionType type, bool isStartSurface); |
| |
| #endif // IOS_CHROME_BROWSER_UI_NTP_METRICS_HOME_METRICS_H_ |