chromium/third_party/blink/renderer/modules/hid/hid_connection_event.idl

// 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.

// A HID connection event representing a connection or disconnection.
// https://wicg.github.io/webhid/index.html#events

[
    Exposed(ServiceWorker WebHIDOnServiceWorkers,
            Window WebHID),
    SecureContext
] interface HIDConnectionEvent : Event {
    constructor(DOMString type, HIDConnectionEventInit eventInitDict);
    // The connected or disconnected device.
    [SameObject] readonly attribute HIDDevice device;
};