blob: 9da9bc37a8e4b4fddd75e1bf8e37c403b07a4c8e [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// 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_MENU_MENU_HISTOGRAMS_H_
#define IOS_CHROME_BROWSER_UI_MENU_MENU_HISTOGRAMS_H_
// Enum representing the existing set of menu scenarios. Current values should
// not be renumbered. Please keep in sync with "IOSMenuScenario" in
// src/tools/metrics/histograms/enums.xml.
enum class MenuScenario {
kBookmarkEntry = 0,
kBookmarkFolder = 1,
kReadingListEntry = 2,
kRecentTabsHeader = 3,
kRecentTabsEntry = 4,
kHistoryEntry = 5,
kMostVisitedEntry = 6,
kContextMenuImage = 7,
kContextMenuImageLink = 8,
kContextMenuLink = 9,
kMaxValue = kContextMenuLink,
};
// Records a menu shown histogram metric for the |scenario|.
void RecordMenuShown(MenuScenario scenario);
// Retrieves a histogram name for the given menu |scenario|'s actions.
const char* GetActionsHistogramName(MenuScenario scenario);
#endif // IOS_CHROME_BROWSER_UI_MENU_MENU_HISTOGRAMS_H_