chromium/components/policy/resources/templates/policy_definitions/ContentSettings/DefaultWebHidGuardSetting.yaml

caption: Control use of the WebHID API
default: null
desc: |-
  Setting the policy to 3 lets websites ask for access to HID devices. Setting the policy to 2 denies access to HID devices.

        Leaving it unset lets websites ask for access, but users can change this setting.

        This policy can be overridden for specific <ph name="URL_LABEL">url</ph> patterns using the <ph name="WEB_HID_ASK_FOR_URLS_POLICY_NAME">WebHidAskForUrls</ph> and <ph name="WEB_HID_BLOCKED_FOR_URLS_POLICY_NAME">WebHidBlockedForUrls</ph> policies.
example_value: 2
features:
  dynamic_refresh: true
  per_profile: true
future_on:
- fuchsia
items:
- caption: Do not allow any site to request access to HID devices via the WebHID API
  name: BlockWebHid
  value: 2
- caption: Allow sites to ask the user to grant access to a HID device
  name: AskWebHid
  value: 3
owners:
- [email protected]
- file://third_party/blink/renderer/modules/hid/OWNERS
schema:
  enum:
  - 2
  - 3
  type: integer
supported_on:
- chrome_os:100-
- chrome.*:100-
tags:
- website-sharing
type: int-enum