# 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: Win32'

widget:
  ime_name_on_windows:
    type: labeled_boolean
    description: >
      Locale ID and name of IME which was selected by users on Windows.
      This does NOT collect legacy IMM-IME names since we cannot get
      readable names and we do not support IMM-IME so aggressively because
      IME vendors should've already released TIP for TSF for supporting
      Windows 8 or later completely.
      This metric was generated to correspond to the Legacy Telemetry
      scalar widget.ime_name_on_windows.
    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_WINDOWS

  ime_name_on_windows_inserted_crlf:
    type: labeled_boolean
    description: >
      Same data as ime_name_on_windows, but only collecting IME names
      which inserted CRLF to check whether the feature works.
      This metric was generated to correspond to the Legacy Telemetry
      scalar widget.ime_name_on_windows_inserted_crlf.
    bugs:
      - https://bugzil.la/1865256
    data_reviews:
      - https://bugzil.la/1865256
    notification_emails:
      - mnakano.birchill@mozilla.com
    expires: never
    telemetry_mirror: WIDGET_IME_NAME_ON_WINDOWS_INSERTED_CRLF

  touch_enabled_device:
    type: labeled_counter
    description: >
      Boolean indicating if a touch input device is detected.

      This metric was generated to correspond to the Legacy Telemetry boolean
      histogram TOUCH_ENABLED_DEVICE.
    labels:
      - "false"
      - "true"
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=795307
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1390269
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=795307
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1390269
    notification_emails:
      - jimm@mozilla.com
    expires: never
    telemetry_mirror: h#TOUCH_ENABLED_DEVICE

windows.security:
  antivirus:
    type: string_list
    description: |
      Product names of registered antivirus programs.
      Windows only.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1950415
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1950415
    data_sensitivity:
      - technical
    notification_emails:
      - jimm@mozilla.com
    expires: never
    send_in_pings:
      - metrics
      - third-party-modules

  antispyware:
    type: string_list
    description: |
      Product names of registered antispyware programs.
      Windows only.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1950415
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1950415
    data_sensitivity:
      - technical
    notification_emails:
      - jimm@mozilla.com
    expires: never
    send_in_pings:
      - metrics
      - third-party-modules

  firewall:
    type: string_list
    description: |
      Product names of registered firewall programs.
      Windows only.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1950415
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1950415
    data_sensitivity:
      - technical
    notification_emails:
      - jimm@mozilla.com
    expires: never
    send_in_pings:
      - metrics
      - third-party-modules
