chromium/ios/chrome/browser/ui/settings/language/language_settings_histograms.h

// Copyright 2019 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_SETTINGS_LANGUAGE_LANGUAGE_SETTINGS_HISTOGRAMS_H_
#define IOS_CHROME_BROWSER_UI_SETTINGS_LANGUAGE_LANGUAGE_SETTINGS_HISTOGRAMS_H_

// UMA histogram names.
extern const char kLanguageSettingsPageImpressionHistogram[];
extern const char kLanguageSettingsActionsHistogram[];

// Enum for the LanguageSettings.PageImpression histogram. These constants are
// repeated in LanguagesManager.java.
// Note: This enum is append-only. Keep in sync with "LanguageSettingsPageType"
// in src/tools/metrics/histograms/enums.xml.
enum class LanguageSettingsPages {
  PAGE_MAIN = 0,
  PAGE_ADD_LANGUAGE = 1,
  PAGE_LANGUAGE_DETAILS = 2,
  // PAGE_CHROME_LANGUAGE = 3, // Windows and Android only.
  // PAGE_ADVANCED_LANGUAGE_SETTINGS = 4,
  // PAGE_TARGET_LANGUAGE = 5,
  // PAGE_LANGUAGE_OVERFLOW_MENU_OPENED = 6 // Desktop only.
  kMaxValue = PAGE_LANGUAGE_DETAILS,
};

// Enum for the LanguageSettings.Actions histogram. These constants are repeated
// in LanguagesManager.java.
// Note: This enum is append-only. Keep in sync with
// "LanguageSettingsActionType" in src/tools/metrics/histograms/enums.xml.
enum class LanguageSettingsActions {
  UNKNOWN = 0,  // Never logged.
  CLICK_ON_ADD_LANGUAGE = 1,
  LANGUAGE_ADDED = 2,
  LANGUAGE_REMOVED = 3,
  DISABLE_TRANSLATE_GLOBALLY = 4,
  ENABLE_TRANSLATE_GLOBALLY = 5,
  DISABLE_TRANSLATE_FOR_SINGLE_LANGUAGE = 6,
  ENABLE_TRANSLATE_FOR_SINGLE_LANGUAGE = 7,
  LANGUAGE_LIST_REORDERED = 8,
  kMaxValue = LANGUAGE_LIST_REORDERED,
};

#endif  // IOS_CHROME_BROWSER_UI_SETTINGS_LANGUAGE_LANGUAGE_SETTINGS_HISTOGRAMS_H_