# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# Adding a new metric? We have docs for that!
# https://firefox-source-docs.mozilla.org/toolkit/components/glean/user/new_definitions_file.html

---
$schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
$tags:
  - 'Core :: Widget: Cocoa'

widget:
  ime_name_on_mac:
    type: labeled_boolean
    description: >
      Name of IME which was selected by users on macOS.  The value is
      Input Source ID if non-Japanese IME was open.  Otherwise, if
      Japanese IME was open, the value is Bundle ID.  Input Source ID
      includes input mode, but Bundle ID does not include input mode.
      This metric was generated to correspond to the Legacy Telemetry
      scalar widget.ime_name_on_mac.
    bugs:
      - https://bugzil.la/1215818
    data_reviews:
      - https://bugzil.la/1215818
    notification_emails:
      - mnakano.birchill@mozilla.com
    expires: never
    telemetry_mirror: WIDGET_IME_NAME_ON_MAC

  mac_application_menu_opened:
    type: counter
    description: >
      Counts how often the macOS Firefox application menu is opened
    bugs:
      - https://bugzil.la/2018748
    data_reviews:
      - https://bugzil.la/2018748
    notification_emails:
      - rfambro@mozilla.com
    expires: never

  rosetta_status:
    type: boolean
    description: >
      True if Rosetta translation is being used.
    bugs:
      - https://bugzil.la/1664933
    data_reviews:
      - https://bugzil.la/1664933
    notification_emails:
      - hballent@mozilla.com
    expires: never
