| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // 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(Window WebHID), |
| SecureContext |
| ] interface HIDConnectionEvent : Event { |
| constructor(DOMString type, HIDConnectionEventInit eventInitDict); |
| // The connected or disconnected device. |
| [SameObject] readonly attribute HIDDevice device; |
| }; |